2025-08-25 15:52:04 +08:00
|
|
|
diff --git i/backends/imgui_impl_opengl3_loader.h w/backends/imgui_impl_opengl3_loader.h
|
|
|
|
index 4ca0536..a1ff572 100644
|
|
|
|
--- i/backends/imgui_impl_opengl3_loader.h
|
|
|
|
+++ w/backends/imgui_impl_opengl3_loader.h
|
|
|
|
@@ -180,6 +180,7 @@ typedef khronos_uint8_t GLubyte;
|
2025-08-25 15:24:22 +08:00
|
|
|
#define GL_VERSION 0x1F02
|
|
|
|
#define GL_EXTENSIONS 0x1F03
|
|
|
|
#define GL_LINEAR 0x2601
|
|
|
|
+#define GL_LINEAR_MIPMAP_LINEAR 0x2703
|
|
|
|
#define GL_TEXTURE_MAG_FILTER 0x2800
|
|
|
|
#define GL_TEXTURE_MIN_FILTER 0x2801
|
|
|
|
#define GL_TEXTURE_WRAP_S 0x2802
|
2025-08-25 15:52:04 +08:00
|
|
|
@@ -244,8 +245,10 @@ GLAPI void APIENTRY glGenTextures (GLsizei n, GLuint *textures);
|
2025-08-25 15:24:22 +08:00
|
|
|
#define GL_TEXTURE0 0x84C0
|
|
|
|
#define GL_ACTIVE_TEXTURE 0x84E0
|
|
|
|
typedef void (APIENTRYP PFNGLACTIVETEXTUREPROC) (GLenum texture);
|
|
|
|
+typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE2DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void *data);
|
|
|
|
#ifdef GL_GLEXT_PROTOTYPES
|
|
|
|
GLAPI void APIENTRY glActiveTexture (GLenum texture);
|
|
|
|
+GLAPI void APIENTRY glCompressedTexImage2D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void *data);
|
|
|
|
#endif
|
|
|
|
#endif /* GL_VERSION_1_3 */
|
|
|
|
#ifndef GL_VERSION_1_4
|
2025-08-25 15:52:04 +08:00
|
|
|
@@ -481,7 +484,7 @@ GL3W_API GL3WglProc imgl3wGetProcAddress(const char *proc);
|
2025-08-25 15:24:22 +08:00
|
|
|
|
|
|
|
/* gl3w internal state */
|
|
|
|
union ImGL3WProcs {
|
2025-08-25 15:52:04 +08:00
|
|
|
- GL3WglProc ptr[60];
|
|
|
|
+ GL3WglProc ptr[61];
|
2025-08-25 15:24:22 +08:00
|
|
|
struct {
|
|
|
|
PFNGLACTIVETEXTUREPROC ActiveTexture;
|
|
|
|
PFNGLATTACHSHADERPROC AttachShader;
|
2025-08-25 15:52:04 +08:00
|
|
|
@@ -497,6 +500,7 @@ union ImGL3WProcs {
|
2025-08-25 15:24:22 +08:00
|
|
|
PFNGLCLEARPROC Clear;
|
|
|
|
PFNGLCLEARCOLORPROC ClearColor;
|
|
|
|
PFNGLCOMPILESHADERPROC CompileShader;
|
|
|
|
+ PFNGLCOMPRESSEDTEXIMAGE2DPROC CompressedTexImage2D;
|
|
|
|
PFNGLCREATEPROGRAMPROC CreateProgram;
|
|
|
|
PFNGLCREATESHADERPROC CreateShader;
|
|
|
|
PFNGLDELETEBUFFERSPROC DeleteBuffers;
|
2025-08-25 15:52:04 +08:00
|
|
|
@@ -563,6 +567,7 @@ GL3W_API extern union ImGL3WProcs imgl3wProcs;
|
2025-08-25 15:24:22 +08:00
|
|
|
#define glClear imgl3wProcs.gl.Clear
|
|
|
|
#define glClearColor imgl3wProcs.gl.ClearColor
|
|
|
|
#define glCompileShader imgl3wProcs.gl.CompileShader
|
|
|
|
+#define glCompressedTexImage2D imgl3wProcs.gl.CompressedTexImage2D
|
|
|
|
#define glCreateProgram imgl3wProcs.gl.CreateProgram
|
|
|
|
#define glCreateShader imgl3wProcs.gl.CreateShader
|
|
|
|
#define glDeleteBuffers imgl3wProcs.gl.DeleteBuffers
|
2025-08-25 15:52:04 +08:00
|
|
|
@@ -859,6 +864,7 @@ static const char *proc_names[] = {
|
2025-08-25 15:24:22 +08:00
|
|
|
"glClear",
|
|
|
|
"glClearColor",
|
|
|
|
"glCompileShader",
|
|
|
|
+ "glCompressedTexImage2D",
|
|
|
|
"glCreateProgram",
|
|
|
|
"glCreateShader",
|
|
|
|
"glDeleteBuffers",
|