summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmmanuel Puybaret <[email protected]>2016-10-30 13:03:48 -0700
committerHarvey Harrison <[email protected]>2016-10-30 13:03:48 -0700
commitc3c13d7fd456dac2d6e5da1ae392d246a961986b (patch)
treede543f5edc0d54b420276b4311db63a8bba0da85
parentdfad04062e389254f80517ce8a9efca79eb40856 (diff)
j3dcore: fix leftover texture mapping coords when some attributes unset
Fixes Bug 1006: https://jogamp.org/bugzilla/show_bug.cgi?id=1006 Signed-off-by: Harvey Harrison <[email protected]>
-rw-r--r--src/javax/media/j3d/JoglPipeline.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/javax/media/j3d/JoglPipeline.java b/src/javax/media/j3d/JoglPipeline.java
index b29048f..269512b 100644
--- a/src/javax/media/j3d/JoglPipeline.java
+++ b/src/javax/media/j3d/JoglPipeline.java
@@ -7694,7 +7694,11 @@ static boolean hasFBObjectSizeChanged(JoglDrawable jdraw, int width, int height)
gl.glEnable(GL.GL_BLEND);
gl.glBlendFunc(GL.GL_SRC_ALPHA, GL.GL_ONE_MINUS_SRC_ALPHA);
- gl.glEnable(GL.GL_TEXTURE_2D);
+ 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);