Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/render/state.cc')
-rw-r--r--src/render/state.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/render/state.cc b/src/render/state.cc
index 8cafefe..7720722 100644
--- a/src/render/state.cc
+++ b/src/render/state.cc
@@ -105,6 +105,10 @@ void State::init(int width, int height)
gl::getinteger(GL_MAX_TEXTURE_UNITS, &state_maxtextureunits);
con_debug << " maximum number of OpenGL texture units is " << state_maxtextureunits << std::endl;
+ // bind multitexture functions
+ gl::activetexture = (gl::activetexture_func) SDL_GL_GetProcAddress("glActiveTexture");
+ gl::clientactivetexture = (gl::activetexture_func) SDL_GL_GetProcAddress("glClientActiveTexture");
+
// Generate VBO
if (state_has_vbo)
gl::genbuffers(1, &state_vbo);