diff --git a/Userland/Libraries/LibGL/Image.cpp b/Userland/Libraries/LibGL/Image.cpp index 98435c8686a..10bd7637208 100644 --- a/Userland/Libraries/LibGL/Image.cpp +++ b/Userland/Libraries/LibGL/Image.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022, Jelle Raaijmakers + * Copyright (c) 2022-2023, Jelle Raaijmakers * * 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(); }