From 19dcc6877c3e32d1a2812709616f9a9de015a9f1 Mon Sep 17 00:00:00 2001 From: Kevin Rushforth Date: Wed, 4 Aug 2004 05:36:53 +0000 Subject: Temporary fix for Issue 16: Issue with Runtime instantiation of Canvas3D Commented out creation and MakeCurrent of dummy wgl context in native isSceneAntialiasingMultiSamplesAvailable() method. git-svn-id: https://svn.java.net/svn/j3d-core~svn/trunk@29 ba19aa83-45c5-6ac9-afd3-db810772062c --- src/native/ogl/NativeConfigTemplate3D.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/native') diff --git a/src/native/ogl/NativeConfigTemplate3D.c b/src/native/ogl/NativeConfigTemplate3D.c index 66a5324..ae2340f 100644 --- a/src/native/ogl/NativeConfigTemplate3D.c +++ b/src/native/ogl/NativeConfigTemplate3D.c @@ -1175,6 +1175,16 @@ jboolean JNICALL Java_javax_media_j3d_NativeConfigTemplate3D_isSceneAntialiasing jint screen, jint pixelFormat) { + /* + * Issue 16: this routine is commented out (and JNI_FALSE is + * returned) until a solution can be found that doesn't affect the + * current WGL context for the calling thread, or we need to + * define and implement a mechanism to revalidate the current + * context. + */ + return JNI_FALSE; + +#if 0 static char szAppName[] = "Choose Pixel Format"; HWND hwnd; HGLRC hrc; @@ -1273,5 +1283,6 @@ jboolean JNICALL Java_javax_media_j3d_NativeConfigTemplate3D_isSceneAntialiasing DestroyWindow(hwnd); UnregisterClass(szAppName, (HINSTANCE)NULL); return support; +#endif /* 0 */ } #endif /* WIN32 */ -- cgit v1.2.3