|
| 1 | +diff --git a/backends/imgui_impl_opengl3_loader.h b/backends/imgui_impl_opengl3_loader.h |
| 2 | +index 2c80cc598..1177da586 100644 |
| 3 | +--- a/backends/imgui_impl_opengl3_loader.h |
| 4 | ++++ b/backends/imgui_impl_opengl3_loader.h |
| 5 | +@@ -182,6 +182,7 @@ typedef khronos_uint8_t GLubyte; |
| 6 | + #define GL_EXTENSIONS 0x1F03 |
| 7 | + #define GL_NEAREST 0x2600 |
| 8 | + #define GL_LINEAR 0x2601 |
| 9 | ++#define GL_LINEAR_MIPMAP_LINEAR 0x2703 |
| 10 | + #define GL_TEXTURE_MAG_FILTER 0x2800 |
| 11 | + #define GL_TEXTURE_MIN_FILTER 0x2801 |
| 12 | + #define GL_TEXTURE_WRAP_S 0x2802 |
| 13 | +@@ -246,8 +247,10 @@ GLAPI void APIENTRY glGenTextures (GLsizei n, GLuint *textures); |
| 14 | + #define GL_TEXTURE0 0x84C0 |
| 15 | + #define GL_ACTIVE_TEXTURE 0x84E0 |
| 16 | + typedef void (APIENTRYP PFNGLACTIVETEXTUREPROC) (GLenum texture); |
| 17 | ++typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE2DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void *data); |
| 18 | + #ifdef GL_GLEXT_PROTOTYPES |
| 19 | + GLAPI void APIENTRY glActiveTexture (GLenum texture); |
| 20 | ++GLAPI void APIENTRY glCompressedTexImage2D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void *data); |
| 21 | + #endif |
| 22 | + #endif /* GL_VERSION_1_3 */ |
| 23 | + #ifndef GL_VERSION_1_4 |
| 24 | +@@ -490,7 +493,7 @@ GL3W_API GL3WglProc imgl3wGetProcAddress(const char *proc); |
| 25 | + |
| 26 | + /* gl3w internal state */ |
| 27 | + union ImGL3WProcs { |
| 28 | +- GL3WglProc ptr[63]; |
| 29 | ++ GL3WglProc ptr[64]; |
| 30 | + struct { |
| 31 | + PFNGLACTIVETEXTUREPROC ActiveTexture; |
| 32 | + PFNGLATTACHSHADERPROC AttachShader; |
| 33 | +@@ -506,6 +509,7 @@ union ImGL3WProcs { |
| 34 | + PFNGLCLEARPROC Clear; |
| 35 | + PFNGLCLEARCOLORPROC ClearColor; |
| 36 | + PFNGLCOMPILESHADERPROC CompileShader; |
| 37 | ++ PFNGLCOMPRESSEDTEXIMAGE2DPROC CompressedTexImage2D; |
| 38 | + PFNGLCREATEPROGRAMPROC CreateProgram; |
| 39 | + PFNGLCREATESHADERPROC CreateShader; |
| 40 | + PFNGLDELETEBUFFERSPROC DeleteBuffers; |
| 41 | +@@ -575,6 +579,7 @@ GL3W_API extern union ImGL3WProcs imgl3wProcs; |
| 42 | + #define glClear imgl3wProcs.gl.Clear |
| 43 | + #define glClearColor imgl3wProcs.gl.ClearColor |
| 44 | + #define glCompileShader imgl3wProcs.gl.CompileShader |
| 45 | ++#define glCompressedTexImage2D imgl3wProcs.gl.CompressedTexImage2D |
| 46 | + #define glCreateProgram imgl3wProcs.gl.CreateProgram |
| 47 | + #define glCreateShader imgl3wProcs.gl.CreateShader |
| 48 | + #define glDeleteBuffers imgl3wProcs.gl.DeleteBuffers |
| 49 | +@@ -883,6 +888,7 @@ static const char *proc_names[] = { |
| 50 | + "glClear", |
| 51 | + "glClearColor", |
| 52 | + "glCompileShader", |
| 53 | ++ "glCompressedTexImage2D", |
| 54 | + "glCreateProgram", |
| 55 | + "glCreateShader", |
| 56 | + "glDeleteBuffers", |
0 commit comments