diff options
author | phil <[email protected]> | 2016-10-26 12:52:39 +1300 |
---|---|---|
committer | phil <[email protected]> | 2016-10-26 12:52:39 +1300 |
commit | 8d0f68fd76710829f76f1d0edadbb2dde1ad4eda (patch) | |
tree | fb362458ae85cf6c37837f3b2a2f3ca8ddce3496 /src/main | |
parent | d0fa672008836024a1d814ece86e8a36319a4c67 (diff) |
Bug 1006 - Transformation applied to a texture is also applied to post
render graphics
The push and pop attribs calls have been left in to keep this code
change in alignment with other texture matrix setting calls
A test for this can be seen in the new overlay2D example in
java3d-examples
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/org/jogamp/java3d/JoglPipeline.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/java/org/jogamp/java3d/JoglPipeline.java b/src/main/java/org/jogamp/java3d/JoglPipeline.java index 32c2fdb..c3cd6ad 100644 --- a/src/main/java/org/jogamp/java3d/JoglPipeline.java +++ b/src/main/java/org/jogamp/java3d/JoglPipeline.java @@ -7696,6 +7696,11 @@ static boolean hasFBObjectSizeChanged(JoglDrawable jdraw, int width, int height) gl.glBlendFunc(GL.GL_SRC_ALPHA, GL.GL_ONE_MINUS_SRC_ALPHA); gl.glEnable(GL.GL_TEXTURE_2D); + + gl.glPushAttrib(GL2.GL_TRANSFORM_BIT); + gl.glMatrixMode(GL.GL_TEXTURE); + gl.glLoadIdentity(); + gl.glPopAttrib(); // loaded identity modelview and projection matrix gl.glMatrixMode(GL2.GL_PROJECTION); |