aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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,