diff options
author | Stijn Buys <ingar@osirion.org> | 2012-12-15 23:18:16 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2012-12-15 23:18:16 +0000 |
commit | 982a578a6d9c400919da3ac8ec24ef016ef8d696 (patch) | |
tree | 290087a6aef0232b708b6c34f71f13ad6cf0a950 /src/render/state.cc | |
parent | a70c15874a4a5eb9d96858ef8efd23018b476af1 (diff) |
esolved an OpenGL-related build problem on windowesolved an OpenGL-related build problem on windows
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); |