From d0f8de4a9412c6049445adea21592065e212d1c9 Mon Sep 17 00:00:00 2001 From: Kenneth Russel Date: Mon, 26 Apr 2004 02:22:20 +0000 Subject: Fixed Issue 76: Multisampling (FSAA) does not work on ATI Applied patch from Yuri Vl. Gushchin to fetch extensions while dummy context is current. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@123 232f8b59-042b-4e1e-8c03-345bb8c30851 --- src/net/java/games/jogl/impl/windows/WindowsGLContext.java | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'src/net/java/games/jogl/impl/windows/WindowsGLContext.java') 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) { -- cgit v1.2.3