Skip to content

Commit

Permalink
Allow SG_PIXELFORMAT_RG11B10F to be a render target on SOKOL_GLCORE
Browse files Browse the repository at this point in the history
  • Loading branch information
kcbanner committed Oct 13, 2024
1 parent 38e4c9a commit cad88b9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sokol_gfx.h
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down

0 comments on commit cad88b9

Please sign in to comment.