mirror of
https://github.com/love2d/love.git
synced 2026-08-14 10:13:46 +02:00
Fix detection for support of r16 and rg16 image formats on desktops.
This commit is contained in:
@@ -1725,7 +1725,9 @@ bool OpenGL::isPixelFormatSupported(PixelFormat pixelformat, bool rendertarget,
|
||||
if (rendertarget)
|
||||
return false;
|
||||
else
|
||||
return (GLAD_VERSION_1_1 && GLAD_EXT_texture_rg) || (GLAD_EXT_texture_norm16 && (GLAD_ES_VERSION_3_0 || GLAD_EXT_texture_rg));
|
||||
return GLAD_VERSION_3_0
|
||||
|| (GLAD_VERSION_1_1 && GLAD_ARB_texture_rg)
|
||||
|| (GLAD_EXT_texture_norm16 && (GLAD_ES_VERSION_3_0 || GLAD_EXT_texture_rg));
|
||||
case PIXELFORMAT_RGBA16:
|
||||
if (rendertarget)
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user