OPENGL: Let Shader store the uniform state.
This commit is contained in:
parent
6dacc96d1f
commit
baca885cfc
6 changed files with 211 additions and 36 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue