aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/native/ogl/GeometryArrayRetained.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/native/ogl/GeometryArrayRetained.c b/src/native/ogl/GeometryArrayRetained.c
index f7c2e1d..fd638b7 100644
--- a/src/native/ogl/GeometryArrayRetained.c
+++ b/src/native/ogl/GeometryArrayRetained.c
@@ -3014,6 +3014,9 @@ void JNICALL Java_javax_media_j3d_IndexedGeometryArrayRetained_executeIndexedGeo
}
if (textureDefined) {
+ texobjs = (jarray *)malloc(texCoordMapLength * sizeof(jarray));
+ texCoordPointer = (jfloat **)malloc(texCoordMapLength * sizeof(jfloat *));
+
for (i = 0; i < texCoordMapLength; i++) {
texobjs[i] = (jarray)(*(table->GetObjectArrayElement))(env, texCoords, i);
}