diff options
Diffstat (limited to 'src/net/java/games/jogl/impl/windows/WindowsGLContext.java')
-rw-r--r-- | src/net/java/games/jogl/impl/windows/WindowsGLContext.java | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/net/java/games/jogl/impl/windows/WindowsGLContext.java b/src/net/java/games/jogl/impl/windows/WindowsGLContext.java index 5d53b21d8..45bd7f21d 100644 --- a/src/net/java/games/jogl/impl/windows/WindowsGLContext.java +++ b/src/net/java/games/jogl/impl/windows/WindowsGLContext.java @@ -267,17 +267,7 @@ public abstract class WindowsGLContext extends GLContext { boolean haveWGLChoosePixelFormatARB = false; boolean haveWGLARBMultisample = false; if (dummyGL != null) { - // It seems that at this point in initialization, - // glGetString(GL.GL_EXTENSIONS) is returning null, so we - // need to use wglGetExtensionsStringARB - String availableWGLExtensions = ""; - // FIXME: would like to do this operation without throwing an - // exception if wglGetExtensionsStringARB isn't available - try { - availableWGLExtensions = dummyGL.wglGetExtensionsStringARB(hdc); - } catch (GLException e) { - // Apparently wglGetExtensionsStringARB wasn't available; ignore - } + String availableWGLExtensions = WindowsGLContextFactory.getDummyGLExtensions(device); if (availableWGLExtensions.indexOf("WGL_ARB_pixel_format") >= 0) { haveWGLChoosePixelFormatARB = true; if (availableWGLExtensions.indexOf("WGL_ARB_multisample") >= 0) { |