Skip to content

Commit

Permalink
Move if-block above switch case
Browse files Browse the repository at this point in the history
  • Loading branch information
tdgunes committed Jul 5, 2016
1 parent 23bfc13 commit ce05bf0
Showing 1 changed file with 6 additions and 6 deletions.
Expand Up @@ -145,14 +145,14 @@ private void renderFinalMonoImage() {
// TODO: have a flag to invert the eyes (Cross Eye 3D), as mentioned in
// TODO: http://forum.terasology.org/threads/happy-coding.1018/#post-11264
private void renderFinalStereoImage(RenderingStage renderingStage) {
if (postProcessor.isNotTakingScreenshot()) { // TODO: verify if this works
sceneFinal.bind();
} else {
ocUndistorted.bind();
}

switch (renderingStage) {
case LEFT_EYE:
if (postProcessor.isNotTakingScreenshot()) { // TODO: verify if this works
sceneFinal.bind();
} else {
ocUndistorted.bind();
}

glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
renderFullscreenQuad(0, 0, fullScale.width() / 2, fullScale.height());

Expand Down

0 comments on commit ce05bf0

Please sign in to comment.