diff options
author | Sven Gothel <[email protected]> | 2011-03-21 07:13:45 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2011-03-21 07:13:45 +0100 |
commit | ab93183b90e83b9aebc29031c7b88b9a3dc58ff5 (patch) | |
tree | 3b5276e51236137d3c43cb3fba0a5a3eb1658d71 /src/jogl/classes/jogamp/opengl/windows/wgl/WindowsExternalWGLContext.java | |
parent | 41fc808eff8d145c37d10a98eb4d8a86bda6f018 (diff) |
Fix Bug #480 (attempt) - ATI + WinXP: make context current for ARB PFD queries/selection
TODO: Validate if bug is actually relates to the 'old' ATI Windows driver for old GPU's like X300 etc
and unrelated to the actual Windows version !
Also ensure that the no pixelformat is being set on external context/HDC.
Diffstat (limited to 'src/jogl/classes/jogamp/opengl/windows/wgl/WindowsExternalWGLContext.java')
-rw-r--r-- | src/jogl/classes/jogamp/opengl/windows/wgl/WindowsExternalWGLContext.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/jogl/classes/jogamp/opengl/windows/wgl/WindowsExternalWGLContext.java b/src/jogl/classes/jogamp/opengl/windows/wgl/WindowsExternalWGLContext.java index 0e2575bd9..632b373af 100644 --- a/src/jogl/classes/jogamp/opengl/windows/wgl/WindowsExternalWGLContext.java +++ b/src/jogl/classes/jogamp/opengl/windows/wgl/WindowsExternalWGLContext.java @@ -92,11 +92,12 @@ public class WindowsExternalWGLContext extends WindowsWGLContext { // Workaround: Use a fake default configuration final int werr = GDI.GetLastError(); cfg = WindowsWGLGraphicsConfigurationFactory.createDefaultGraphicsConfiguration(new GLCapabilities(GLProfile.getDefault()), aScreen); + cfg.markExternal(); if(DEBUG) { System.err.println("WindowsExternalWGLContext invalid hdc/pfd werr "+werr+", using default cfg: " + cfg); } } else { - cfg = WindowsWGLGraphicsConfiguration.createFromCurrent(factory, hdc, pfdID, glp, aScreen, true); + cfg = WindowsWGLGraphicsConfiguration.createFromExternal(factory, hdc, pfdID, glp, aScreen, true); if(DEBUG) { System.err.println("WindowsExternalWGLContext valid hdc/pfd, retrieved cfg: " + cfg); } |