53 |
|
|
54 |
Stats::Statistics statistics; |
Stats::Statistics statistics; |
55 |
|
|
56 |
ObjectStorer<TexAccum_JNI> texaccums("texaccums"); |
ObjectStorer<Stats::TexAccum> texaccums("texaccums"); |
57 |
|
|
58 |
jclass globalclass_WeakStatsCaller = 0; |
jclass globalclass_WeakStatsCaller = 0; |
59 |
jmethodID WSC_call = 0; |
jmethodID WSC_call = 0; |
105 |
|
|
106 |
jf( void, impl_1TexAccum_1delete ) |
jf( void, impl_1TexAccum_1delete ) |
107 |
(JNIEnv *env, jclass, jint id) { |
(JNIEnv *env, jclass, jint id) { |
108 |
TexAccum_JNI *accum = texaccums.get(id); |
// We know only TexAccum_JNIs get into texaccums |
109 |
|
TexAccum_JNI *accum = (TexAccum_JNI *)texaccums.get(id); |
110 |
accum->prepareToDelete(env); |
accum->prepareToDelete(env); |
111 |
texaccums.remove(id); |
texaccums.remove(id); |
112 |
} |
} |