diff options
author | Sven Gothel <[email protected]> | 2001-12-06 09:18:00 +0000 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2001-12-06 09:18:00 +0000 |
commit | 8fdc4baaee82a63247a9f4203dace4ee910881bb (patch) | |
tree | f9ff045a8756d695c3afafadb5256c86813eecef /CNativeCode/OpenGL_X11_jawt.c | |
parent | 5a67c0f5302dbd445d744450db58d1122096b742 (diff) |
2.8.1 rc 0rel-2-8-1-0-rc
Diffstat (limited to 'CNativeCode/OpenGL_X11_jawt.c')
-rw-r--r-- | CNativeCode/OpenGL_X11_jawt.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/CNativeCode/OpenGL_X11_jawt.c b/CNativeCode/OpenGL_X11_jawt.c index 21231ef..946e6d6 100644 --- a/CNativeCode/OpenGL_X11_jawt.c +++ b/CNativeCode/OpenGL_X11_jawt.c @@ -226,7 +226,6 @@ Java_gl4java_GLContext_openOpenGLNative( JNIEnv *env, jobject obj, if(JNI_TRUE==verbose) { fprintf(stderr, "GL4Java: openOpen FindClass gl4java/GLCapabilities failed, cannot check glCaps object\n"); - (*env)->ExceptionDescribe(env); fflush(stderr); } (*env)->ExceptionClear(env); @@ -315,7 +314,6 @@ Java_gl4java_GLContext_openOpenGLNative( JNIEnv *env, jobject obj, if(JNI_TRUE==verbose) { fprintf(stderr, "GL4Java: openOpen FindClass java/awt/Component failed, cannot check canvas object\n"); - (*env)->ExceptionDescribe(env); fflush(stderr); } (*env)->ExceptionClear(env); @@ -324,7 +322,7 @@ Java_gl4java_GLContext_openOpenGLNative( JNIEnv *env, jobject obj, exc=0; if(ret==JNI_TRUE) { - if (canvas == 0) + if (canvas == 0 && joffScreenRenderer!=JNI_TRUE) { ret= JNI_FALSE; fprintf(stderr,"\nGL4Java ERROR: canvas == NULL !\n"); @@ -395,13 +393,14 @@ Java_gl4java_GLContext_openOpenGLNative( JNIEnv *env, jobject obj, } } - /* + /** + * if(ret==JNI_TRUE) XSetErrorHandler(x11gl_myErrorHandler); if(ret==JNI_TRUE) XSetIOErrorHandler(x11gl_myIOErrorHandler); - */ + */ if(JNI_TRUE==ret && JNI_TRUE==verbose) { |