From cad88b9eec6280ad0300f01e21de7f99e6ba522d Mon Sep 17 00:00:00 2001 From: kcbanner Date: Sun, 13 Oct 2024 00:10:56 -0400 Subject: [PATCH] Allow SG_PIXELFORMAT_RG11B10F to be a render target on SOKOL_GLCORE --- sokol_gfx.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sokol_gfx.h b/sokol_gfx.h index 9cf317a78..afc4f14ef 100644 --- a/sokol_gfx.h +++ b/sokol_gfx.h @@ -7494,7 +7494,11 @@ _SOKOL_PRIVATE void _sg_gl_init_pixelformats(bool has_bgra) { _sg_pixelformat_all(&_sg.formats[SG_PIXELFORMAT_BGRA8]); } _sg_pixelformat_all(&_sg.formats[SG_PIXELFORMAT_RGB10A2]); + #if defined(SOKOL_GLES3) _sg_pixelformat_sf(&_sg.formats[SG_PIXELFORMAT_RG11B10F]); + #else + _sg_pixelformat_all(&_sg.formats[SG_PIXELFORMAT_RG11B10F]); + #endif _sg_pixelformat_sf(&_sg.formats[SG_PIXELFORMAT_RGB9E5]); _sg_pixelformat_srm(&_sg.formats[SG_PIXELFORMAT_RG32UI]); _sg_pixelformat_srm(&_sg.formats[SG_PIXELFORMAT_RG32SI]);