LibGL: Implement support for the GL_RGB5_A1 internal image format

We already support this in all other logic and in LibSoftGPU, I just
forgot to add this constant to this list.
This commit is contained in:
Jelle Raaijmakers 2023-04-30 17:07:16 +02:00 committed by Andreas Kling
parent 54448040ec
commit ea2f88a483
Notes: sideshowbarker 2024-07-17 01:21:02 +09:00

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2022, Jelle Raaijmakers <jelle@gmta.nl>
* Copyright (c) 2022-2023, Jelle Raaijmakers <jelle@gmta.nl>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
@ -281,6 +281,7 @@ GPU::PixelFormat pixel_format_for_internal_format(GLenum internal_format)
case GL_RGBA:
case GL_RGBA2:
case GL_RGBA4:
case GL_RGB5_A1:
case GL_RGBA8:
case GL_RGB10_A2:
case GL_RGBA12:
@ -288,6 +289,8 @@ GPU::PixelFormat pixel_format_for_internal_format(GLenum internal_format)
case GL_COMPRESSED_RGBA:
return GPU::PixelFormat::RGBA;
}
dbgln("{}({:#x}): unsupported internal format", __FUNCTION__, internal_format);
VERIFY_NOT_REACHED();
}