aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/java/games/jogl/impl/windows/WindowsGLContext.java
diff options
context:
space:
mode:
authorKenneth Russel <[email protected]>2004-04-26 02:22:20 +0000
committerKenneth Russel <[email protected]>2004-04-26 02:22:20 +0000
commitd0f8de4a9412c6049445adea21592065e212d1c9 (patch)
tree8ecb9b926eaac4ad72c05480b72b6eb64948e9f9 /src/net/java/games/jogl/impl/windows/WindowsGLContext.java
parent0268b8b446fcff93971c1d0dd3b188b3cb5436d9 (diff)
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
Diffstat (limited to 'src/net/java/games/jogl/impl/windows/WindowsGLContext.java')
-rw-r--r--src/net/java/games/jogl/impl/windows/WindowsGLContext.java12
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) {