From 6c7a01f92f432ac1a0aee88ffc066140652b2bea Mon Sep 17 00:00:00 2001 From: Chien Yang Date: Fri, 13 Jan 2006 00:12:29 +0000 Subject: Fixed issue 223 : VM crashes when execute IndexedGeometryArray object with Texture coordinates git-svn-id: https://svn.java.net/svn/j3d-core~svn/trunk@503 ba19aa83-45c5-6ac9-afd3-db810772062c --- src/native/ogl/GeometryArrayRetained.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/native/ogl') 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); } -- cgit v1.2.3