From c5a6f80e62fd9836a75058ac358d39dd5ec956b5 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 10 Dec 2015 17:56:00 +0300 Subject: Add pointer to OpenGL function glActiveTexture. --- src/render/mgl.hpp | 1 + src/render/mglemu.cpp | 4 ++++ src/render/mglemu.h | 1 + src/render/mgltypes.h | 1 + 4 files changed, 7 insertions(+) (limited to 'src/render') diff --git a/src/render/mgl.hpp b/src/render/mgl.hpp index 47ad276d3..118b9491c 100644 --- a/src/render/mgl.hpp +++ b/src/render/mgl.hpp @@ -103,6 +103,7 @@ defName(glTextureSubImage2D); defName(glClearTexImage); defName(glClearTexSubImage); defName(glBindAttribLocation); +defName(glActiveTexture); #ifdef WIN32 defName(wglGetExtensionsString); #endif diff --git a/src/render/mglemu.cpp b/src/render/mglemu.cpp index 30330d9a5..4b46b341b 100644 --- a/src/render/mglemu.cpp +++ b/src/render/mglemu.cpp @@ -40,4 +40,8 @@ void APIENTRY emuglTextureSubImage2D(GLuint texture, GLenum target, format, type, pixels); } +void APIENTRY emuglActiveTexture (GLenum texture A_UNUSED) +{ +} + #endif diff --git a/src/render/mglemu.h b/src/render/mglemu.h index f22877939..536a02011 100644 --- a/src/render/mglemu.h +++ b/src/render/mglemu.h @@ -31,6 +31,7 @@ void APIENTRY emuglTextureSubImage2D(GLuint texture, GLenum target, GLenum format, GLenum type, const void *pixels); +void APIENTRY emuglActiveTexture (GLenum texture); #endif // USE_OPENGL #endif // RENDER_MGLEMU_H diff --git a/src/render/mgltypes.h b/src/render/mgltypes.h index 6b55f4430..479f5e177 100644 --- a/src/render/mgltypes.h +++ b/src/render/mgltypes.h @@ -187,6 +187,7 @@ typedef void (APIENTRY *glClearTexSubImage_t) (GLuint texture, GLint level, GLsizei depth, GLenum format, GLenum type, const void * data); typedef void (APIENTRY *glBindAttribLocation_t) (GLuint program, GLuint index, const GLchar *name); +typedef void (APIENTRY *glActiveTexture_t) (GLenum texture); // callback typedef void (APIENTRY *GLDEBUGPROC_t) (GLenum source, GLenum type, GLuint id, -- cgit v1.2.3-70-g09d2