Browse Source

GLES3+: Fix headers.

Бранимир Караџић 2 years ago
parent
commit
bea82a1343
1 changed files with 8 additions and 2 deletions
  1. 8 2
      src/renderer_gl.h

+ 8 - 2
src/renderer_gl.h

@@ -140,8 +140,14 @@ typedef uint64_t GLuint64;
 #		define GL_UNSIGNED_INT_24_8 GL_UNSIGNED_INT_24_8_OES
 #		define GL_UNSIGNED_INT_24_8 GL_UNSIGNED_INT_24_8_OES
 #	elif BGFX_CONFIG_RENDERER_OPENGLES >= 30
 #	elif BGFX_CONFIG_RENDERER_OPENGLES >= 30
 #		include <GLES3/gl3platform.h>
 #		include <GLES3/gl3platform.h>
-#		include <GLES3/gl3.h>
-#		include <GLES3/gl3ext.h>
+#		if BGFX_CONFIG_RENDERER_OPENGLES >= 32
+#			include <GLES3/gl32.h>
+#		elif BGFX_CONFIG_RENDERER_OPENGLES >= 31
+#			include <GLES3/gl31.h>
+#		else
+#			include <GLES3/gl3.h>
+#		endif // BGFX_CONFIG_RENDERER_OPENGLES
+#		include <GLES2/gl2ext.h>
 #	endif // BGFX_CONFIG_RENDERER_
 #	endif // BGFX_CONFIG_RENDERER_
 
 
 #	if BGFX_USE_EGL
 #	if BGFX_USE_EGL