mirror of
https://github.com/love2d/love.git
synced 2026-08-16 08:11:02 +02:00
Allow texel buffers in OpenGL ES, when supported by the system.
This commit is contained in:
@@ -1479,8 +1479,8 @@ bool OpenGL::isBufferUsageSupported(BufferUsage usage) const
|
||||
case BUFFERUSAGE_INDEX:
|
||||
return true;
|
||||
case BUFFERUSAGE_TEXEL:
|
||||
// Not supported in ES until 3.2, which we don't support shaders for...
|
||||
return GLAD_VERSION_3_1;
|
||||
// Not supported in ES until 3.2, so we rely on extensions there...
|
||||
return GLAD_VERSION_3_1 || GLAD_OES_texture_buffer || GLAD_EXT_texture_buffer;
|
||||
case BUFFERUSAGE_SHADER_STORAGE:
|
||||
return (GLAD_VERSION_4_3 && isCoreProfile()) || GLAD_ES_VERSION_3_1;
|
||||
case BUFFERUSAGE_MAX_ENUM:
|
||||
|
||||
Reference in New Issue
Block a user