OPENGL: Let Shader store the uniform state.

This commit is contained in:
Johannes Schickel 2016-03-02 15:16:05 +01:00
parent 6dacc96d1f
commit baca885cfc
6 changed files with 211 additions and 36 deletions

View file

@ -32,8 +32,6 @@ CLUT8LookUpPipeline::CLUT8LookUpPipeline()
}
void CLUT8LookUpPipeline::drawTexture(const GLTexture &texture, const GLfloat *coordinates) {
_activeShader->setUniformI(_activeShader->getUniformLocation("palette"), 1);
// Set the palette texture.
GL_CALL(glActiveTexture(GL_TEXTURE1));
if (_paletteTexture) {