mirror of
https://github.com/love2d/love.git
synced 2026-08-16 16:20:42 +02:00
#pragma language glsl4 in shaders maps to GLES 3.2 instead of 3.1.
This commit is contained in:
@@ -153,12 +153,7 @@ bool Buffer::load(const void *initialdata)
|
||||
|
||||
GLenum glformat = getGLFormat(getDataMember(0).decl.format);
|
||||
|
||||
if (GLAD_VERSION_3_1)
|
||||
glTexBuffer(target, glformat, buffer);
|
||||
else if (GLAD_OES_texture_buffer)
|
||||
glTexBufferOES(target, glformat, buffer);
|
||||
else if (GLAD_EXT_texture_buffer)
|
||||
glTexBufferEXT(target, glformat, buffer);
|
||||
glTexBuffer(target, glformat, buffer);
|
||||
}
|
||||
|
||||
return (glGetError() == GL_NO_ERROR);
|
||||
|
||||
Reference in New Issue
Block a user