Commit 3ad4e225 authored by Christopher Tenter's avatar Christopher Tenter

fix multiviewport bug for some post processors

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@20479 383ad7c9-94d9-4d36-a494-682f7c89f535
parent cc61f70c
......@@ -97,20 +97,14 @@ void PostProcessorAnaglyphPlugin::postProcess(ACG::GLState* _glstate, const std:
// Bind input texture
// ======================================================================================================
glActiveTexture(GL_TEXTURE1);
glEnable(GL_TEXTURE_2D);
glBindTexture(GL_TEXTURE_2D, _input[1]->colorTex_);
glActiveTexture(GL_TEXTURE0);
glEnable(GL_TEXTURE_2D);
glBindTexture(GL_TEXTURE_2D, _input[0]->colorTex_);
_input[1]->bindColorTex(1);
_input[0]->bindColorTex(0);
// ======================================================================================================
// Bind output FBO
// ======================================================================================================
glBindFramebuffer(GL_FRAMEBUFFER, _output.fbo_);
glDrawBuffer(_output.drawBuffer_);
_output.bind();
// ======================================================================================================
// Setup render states
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment