diff options
Diffstat (limited to 'src/render/state.cc')
-rw-r--r-- | src/render/state.cc | 4 |
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); |