feat(gl_loader): añadir glActiveTexture y glGenerateMipmap

Necesarios para que gl_texture_load (cpp/functions/gfx/) funcione en
Windows tras wglGetProcAddress. En Linux son simbolos directos via
GL_GLEXT_PROTOTYPES, no afecta.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-25 20:58:07 +02:00
parent 8402834487
commit fcbda2af2e
2 changed files with 8 additions and 0 deletions
+4
View File
@@ -38,6 +38,8 @@
extern PFNGLUNIFORM4FPROC fn_glUniform4f;
extern PFNGLUNIFORM4FVPROC fn_glUniform4fv;
extern PFNGLUSEPROGRAMPROC fn_glUseProgram;
extern PFNGLACTIVETEXTUREPROC fn_glActiveTexture;
extern PFNGLGENERATEMIPMAPPROC fn_glGenerateMipmap;
#define glAttachShader fn_glAttachShader
#define glBindBuffer fn_glBindBuffer
@@ -69,6 +71,8 @@
#define glUniform4f fn_glUniform4f
#define glUniform4fv fn_glUniform4fv
#define glUseProgram fn_glUseProgram
#define glActiveTexture fn_glActiveTexture
#define glGenerateMipmap fn_glGenerateMipmap
#else
#define GL_GLEXT_PROTOTYPES
#include <GL/gl.h>