diff options
Diffstat (limited to 'src/net/java/games/jogl/impl/windows/WindowsGLDrawableFactory.java')
-rwxr-xr-x | src/net/java/games/jogl/impl/windows/WindowsGLDrawableFactory.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/net/java/games/jogl/impl/windows/WindowsGLDrawableFactory.java b/src/net/java/games/jogl/impl/windows/WindowsGLDrawableFactory.java index b29bcf157..d3c176fa8 100755 --- a/src/net/java/games/jogl/impl/windows/WindowsGLDrawableFactory.java +++ b/src/net/java/games/jogl/impl/windows/WindowsGLDrawableFactory.java @@ -188,19 +188,19 @@ public class WindowsGLDrawableFactory extends GLDrawableFactoryImpl { Runnable r = new Runnable() { public void run() { WindowsDummyGLDrawable dummyDrawable = new WindowsDummyGLDrawable(); - GLContext dummyContext = dummyDrawable.createContext(null); + WindowsGLContext dummyContext = (WindowsGLContext) dummyDrawable.createContext(null); GLContext lastContext = GLContext.getCurrent(); if (lastContext != null) { lastContext.release(); } dummyContext.makeCurrent(); - GL dummyGL = dummyContext.getGL(); + WGLExt dummyWGLExt = dummyContext.getWGLExt(); try { WindowsPbufferGLDrawable pbufferDrawable = new WindowsPbufferGLDrawable(capabilities, initialWidth, initialHeight, dummyDrawable, - dummyGL); + dummyWGLExt); GLPbufferImpl pbuffer = new GLPbufferImpl(pbufferDrawable, shareWith); returnList.add(pbuffer); dummyContext.release(); |