mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
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:
parent
54448040ec
commit
ea2f88a483
Notes:
sideshowbarker
2024-07-17 01:21:02 +09:00
Author: https://github.com/gmta Commit: https://github.com/SerenityOS/serenity/commit/ea2f88a483 Pull-request: https://github.com/SerenityOS/serenity/pull/18587 Reviewed-by: https://github.com/kennethmyhra ✅
1 changed files with 4 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue