aboutsummaryrefslogtreecommitdiffstats
path: root/src/native/ogl
diff options
context:
space:
mode:
authorChien Yang <[email protected]>2006-01-13 00:12:29 +0000
committerChien Yang <[email protected]>2006-01-13 00:12:29 +0000
commit6c7a01f92f432ac1a0aee88ffc066140652b2bea (patch)
treefd75a9c0915a63ffa8952d4f7612878dfde2f0a1 /src/native/ogl
parentbb3d3da5cdc1db6537a62afdb7d9c7de9ac87f91 (diff)
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
Diffstat (limited to 'src/native/ogl')
-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);
}