Message ID | 20110721123633.17019.68681.launchpad@loganberry.canonical.com |
---|---|
State | Accepted |
Headers | show |
=== modified file 'src/shader.cpp' --- src/shader.cpp 2010-07-12 10:06:29 +0000 +++ src/shader.cpp 2010-07-12 16:14:14 +0000 @@ -99,7 +99,9 @@ "MaterialColor"); mLocations.MaterialTexture0 = glGetUniformLocation(mShaderProgram, "MaterialTexture0"); + glUseProgram(mShaderProgram); glUniform1i(mLocations.MaterialTexture0, 0); + glUseProgram(0); #ifdef _DEBUG printf("Uniform Locations: %d %d %d %d %d %d %d %d %d %d %d %d\n",