diff options
author | Kevin Rushforth <[email protected]> | 2004-08-04 05:36:53 +0000 |
---|---|---|
committer | Kevin Rushforth <[email protected]> | 2004-08-04 05:36:53 +0000 |
commit | 19dcc6877c3e32d1a2812709616f9a9de015a9f1 (patch) | |
tree | 29bf548c847431ce9ace3533a5efde2793e24d80 /src/native/ogl | |
parent | 6504b46303defd9c7f00028e8dafc92162f8cbda (diff) |
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
Diffstat (limited to 'src/native/ogl')
-rw-r--r-- | src/native/ogl/NativeConfigTemplate3D.c | 11 |
1 files changed, 11 insertions, 0 deletions
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 */ |