Fix bitmap export under Windows (image was flipped) 68/12768/2
Calixte DENIZET [Tue, 1 Oct 2013 09:38:58 +0000 (11:38 +0200)]
Change-Id: I847c6a3be8830d2d1e2c3300a49447a94a723b40

scilab/modules/scirenderer/src/org/scilab/forge/scirenderer/implementation/jogl/JoGLCanvas.java

index d488326..8a08cff 100644 (file)
@@ -251,18 +251,6 @@ public final class JoGLCanvas implements Canvas, GLEventListener {
             e.printStackTrace();
         }
 
-        boolean needFlip;
-        try {
-            needFlip = !autoDrawable.isGLOriented();
-        } catch (GLException e) {
-            needFlip = false;
-        }
-
-        if (needFlip) {
-            // Need to flip image when Windows uses an OpenGL software renderer
-            ImageUtil.flipImageVertically(image[0]);
-        }
-
         return image[0];
     }