Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2012-12-15 23:18:16 +0000
committerStijn Buys <ingar@osirion.org>2012-12-15 23:18:16 +0000
commit982a578a6d9c400919da3ac8ec24ef016ef8d696 (patch)
tree290087a6aef0232b708b6c34f71f13ad6cf0a950 /src/render/state.cc
parenta70c15874a4a5eb9d96858ef8efd23018b476af1 (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.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);