|
| 1 | +diff --git a/cmake/imgui-loader.patch b/cmake/imgui-loader.patch |
| 2 | +index 145fa755..71e5d6cb 100644 |
| 3 | +--- a/cmake/imgui-loader.patch |
| 4 | ++++ b/cmake/imgui-loader.patch |
| 5 | +@@ -1,16 +1,16 @@ |
| 6 | +-diff --git i/backends/imgui_impl_opengl3_loader.h w/backends/imgui_impl_opengl3_loader.h |
| 7 | +-index 4ca0536..a1ff572 100644 |
| 8 | +---- i/backends/imgui_impl_opengl3_loader.h |
| 9 | +-+++ w/backends/imgui_impl_opengl3_loader.h |
| 10 | +-@@ -180,6 +180,7 @@ typedef khronos_uint8_t GLubyte; |
| 11 | +- #define GL_VERSION 0x1F02 |
| 12 | ++diff --git a/backends/imgui_impl_opengl3_loader.h b/backends/imgui_impl_opengl3_loader.h |
| 13 | ++index 2c80cc598..1177da586 100644 |
| 14 | ++--- a/backends/imgui_impl_opengl3_loader.h |
| 15 | +++++ b/backends/imgui_impl_opengl3_loader.h |
| 16 | ++@@ -182,6 +182,7 @@ typedef khronos_uint8_t GLubyte; |
| 17 | + #define GL_EXTENSIONS 0x1F03 |
| 18 | ++ #define GL_NEAREST 0x2600 |
| 19 | + #define GL_LINEAR 0x2601 |
| 20 | + +#define GL_LINEAR_MIPMAP_LINEAR 0x2703 |
| 21 | + #define GL_TEXTURE_MAG_FILTER 0x2800 |
| 22 | + #define GL_TEXTURE_MIN_FILTER 0x2801 |
| 23 | + #define GL_TEXTURE_WRAP_S 0x2802 |
| 24 | +-@@ -244,8 +245,10 @@ GLAPI void APIENTRY glGenTextures (GLsizei n, GLuint *textures); |
| 25 | ++@@ -246,8 +247,10 @@ GLAPI void APIENTRY glGenTextures (GLsizei n, GLuint *textures); |
| 26 | + #define GL_TEXTURE0 0x84C0 |
| 27 | + #define GL_ACTIVE_TEXTURE 0x84E0 |
| 28 | + typedef void (APIENTRYP PFNGLACTIVETEXTUREPROC) (GLenum texture); |
| 29 | +@@ -21,7 +21,7 @@ index 4ca0536..a1ff572 100644 |
| 30 | + #endif |
| 31 | + #endif /* GL_VERSION_1_3 */ |
| 32 | + #ifndef GL_VERSION_1_4 |
| 33 | +-@@ -481,7 +484,7 @@ GL3W_API GL3WglProc imgl3wGetProcAddress(const char *proc); |
| 34 | ++@@ -490,7 +493,7 @@ GL3W_API GL3WglProc imgl3wGetProcAddress(const char *proc); |
| 35 | + |
| 36 | + /* gl3w internal state */ |
| 37 | + union ImGL3WProcs { |
| 38 | +@@ -30,7 +30,7 @@ index 4ca0536..a1ff572 100644 |
| 39 | + struct { |
| 40 | + PFNGLACTIVETEXTUREPROC ActiveTexture; |
| 41 | + PFNGLATTACHSHADERPROC AttachShader; |
| 42 | +-@@ -497,6 +500,7 @@ union ImGL3WProcs { |
| 43 | ++@@ -506,6 +509,7 @@ union ImGL3WProcs { |
| 44 | + PFNGLCLEARPROC Clear; |
| 45 | + PFNGLCLEARCOLORPROC ClearColor; |
| 46 | + PFNGLCOMPILESHADERPROC CompileShader; |
| 47 | +@@ -38,7 +38,7 @@ index 4ca0536..a1ff572 100644 |
| 48 | + PFNGLCREATEPROGRAMPROC CreateProgram; |
| 49 | + PFNGLCREATESHADERPROC CreateShader; |
| 50 | + PFNGLDELETEBUFFERSPROC DeleteBuffers; |
| 51 | +-@@ -563,6 +567,7 @@ GL3W_API extern union ImGL3WProcs imgl3wProcs; |
| 52 | ++@@ -575,6 +579,7 @@ GL3W_API extern union ImGL3WProcs imgl3wProcs; |
| 53 | + #define glClear imgl3wProcs.gl.Clear |
| 54 | + #define glClearColor imgl3wProcs.gl.ClearColor |
| 55 | + #define glCompileShader imgl3wProcs.gl.CompileShader |
| 56 | +@@ -46,7 +46,7 @@ index 4ca0536..a1ff572 100644 |
| 57 | + #define glCreateProgram imgl3wProcs.gl.CreateProgram |
| 58 | + #define glCreateShader imgl3wProcs.gl.CreateShader |
| 59 | + #define glDeleteBuffers imgl3wProcs.gl.DeleteBuffers |
| 60 | +-@@ -859,6 +864,7 @@ static const char *proc_names[] = { |
| 61 | ++@@ -883,6 +888,7 @@ static const char *proc_names[] = { |
| 62 | + "glClear", |
| 63 | + "glClearColor", |
| 64 | + "glCompileShader", |
0 commit comments