From aca9a0cdb9b0de5be908eee8a23ecde58d3d1388 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Thu, 7 Jan 2016 10:39:44 -0800 Subject: [PATCH] GLES: Fixed build. --- src/glimports.h | 2 ++ src/renderer_gl.h | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/src/glimports.h b/src/glimports.h index bcc114d1a..da9f4b92a 100644 --- a/src/glimports.h +++ b/src/glimports.h @@ -470,6 +470,8 @@ GL_IMPORT_____x(true, PFNGLGETCOMPRESSEDTEXIMAGEPROC, glGetCompress GL_IMPORT_____x(true, PFNGLGETTEXIMAGEPROC, glGetTexImage); # if BGFX_CONFIG_RENDERER_OPENGLES < 30 +GL_IMPORT______(true, PFNGLGETSTRINGIPROC, glGetStringi); + GL_IMPORT_OES__(true, PFNGLTEXIMAGE3DPROC, glTexImage3D); GL_IMPORT_OES__(true, PFNGLTEXSUBIMAGE3DPROC, glTexSubImage3D); GL_IMPORT_OES__(true, PFNGLCOMPRESSEDTEXIMAGE3DPROC, glCompressedTexImage3D); diff --git a/src/renderer_gl.h b/src/renderer_gl.h index 715bf6ae9..0522f8eee 100644 --- a/src/renderer_gl.h +++ b/src/renderer_gl.h @@ -742,6 +742,10 @@ typedef uint64_t GLuint64; # define GL_FRAMEBUFFER_SRGB 0x8DB9 #endif // GL_FRAMEBUFFER_SRGB +#ifndef GL_NUM_EXTENSIONS +# define GL_NUM_EXTENSIONS 0x821D +#endif // GL_NUM_EXTENSIONS + // _KHR or _ARB... #define GL_DEBUG_OUTPUT_SYNCHRONOUS 0x8242 #define GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH 0x8243