aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChien Yang <[email protected]>2006-08-09 20:34:19 +0000
committerChien Yang <[email protected]>2006-08-09 20:34:19 +0000
commit26f80dd34c28807e5c41331c890e65ae967e248c (patch)
tree67e3c38d288fd1571f2a5c94a473ba2fa5b7c6fb
parenta5dc6fae643a01255c5dad83392d81c26b842f4b (diff)
Fixed issue 338 : Bug in glPushAttrib usage in NativePipeline
git-svn-id: https://svn.java.net/svn/j3d-core~svn/trunk@655 ba19aa83-45c5-6ac9-afd3-db810772062c
-rw-r--r--src/native/ogl/Attributes.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/native/ogl/Attributes.c b/src/native/ogl/Attributes.c
index 9f17fc0..bb35990 100644
--- a/src/native/ogl/Attributes.c
+++ b/src/native/ogl/Attributes.c
@@ -1093,7 +1093,7 @@ void JNICALL Java_javax_media_j3d_Canvas3D_resetTextureAttributes(
GraphicsContextPropertiesInfo *ctxProperties = (GraphicsContextPropertiesInfo *)ctxInfo;
- glPushAttrib(GL_MATRIX_MODE);
+ glPushAttrib(GL_TRANSFORM_BIT);
glMatrixMode(GL_TEXTURE);
glLoadIdentity();
glPopAttrib();
@@ -1137,7 +1137,7 @@ void JNICALL Java_javax_media_j3d_TextureAttributesRetained_updateNative(
}
/* set OGL texture matrix */
- glPushAttrib(GL_MATRIX_MODE);
+ glPushAttrib(GL_TRANSFORM_BIT);
glMatrixMode(GL_TEXTURE);
mx_ptr = (jdouble *)(*(table->GetPrimitiveArrayCritical))(env, transform,
@@ -1255,7 +1255,7 @@ void JNICALL Java_javax_media_j3d_TextureAttributesRetained_updateNativeRegister
}
/* set OGL texture matrix */
- glPushAttrib(GL_MATRIX_MODE);
+ glPushAttrib(GL_TRANSFORM_BIT);
glMatrixMode(GL_TEXTURE);
mx_ptr = (jdouble *)(*(table->GetPrimitiveArrayCritical))(env, transform,