#pragma language glsl4 in shaders maps to GLES 3.2 instead of 3.1.

This commit is contained in:
Alex Szpakowski
2022-01-02 14:02:55 -04:00
parent 59f532fdfa
commit 91cb845f31
4 changed files with 4 additions and 15 deletions
+1 -6
View File
@@ -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);