aboutsummaryrefslogtreecommitdiffstats
path: root/CNativeCode/OpenGL_Win32_jawt.c
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2001-12-06 09:18:00 +0000
committerSven Gothel <[email protected]>2001-12-06 09:18:00 +0000
commit8fdc4baaee82a63247a9f4203dace4ee910881bb (patch)
treef9ff045a8756d695c3afafadb5256c86813eecef /CNativeCode/OpenGL_Win32_jawt.c
parent5a67c0f5302dbd445d744450db58d1122096b742 (diff)
2.8.1 rc 0rel-2-8-1-0-rc
Diffstat (limited to 'CNativeCode/OpenGL_Win32_jawt.c')
-rwxr-xr-xCNativeCode/OpenGL_Win32_jawt.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/CNativeCode/OpenGL_Win32_jawt.c b/CNativeCode/OpenGL_Win32_jawt.c
index 5c5359f..c3daae7 100755
--- a/CNativeCode/OpenGL_Win32_jawt.c
+++ b/CNativeCode/OpenGL_Win32_jawt.c
@@ -273,7 +273,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);
@@ -323,7 +322,7 @@ Java_gl4java_GLContext_openOpenGLNative( JNIEnv *env, jobject obj,
if(joffScreenRenderer==JNI_TRUE)
{
- glCaps.buffer=BUFFER_SINGLE;
+ glCaps.buffer=BUFFER_SINGLE;
}
if(JNI_TRUE==verbose && joffScreenRenderer==JNI_TRUE)
@@ -338,7 +337,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);
@@ -347,7 +345,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");