diff options
author | Kenneth Russel <[email protected]> | 2005-07-19 01:00:42 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2005-07-19 01:00:42 +0000 |
commit | 730e752dc282ab4230e6fc80d934011bffdc6007 (patch) | |
tree | 419398176a9d7d1e47be48fa53ad9fc1b8f13143 /src/net/java/games/jogl/impl/x11/X11OffscreenGLDrawable.java | |
parent | 35435c313ba527c9bea35a14f72492d2f80a9c84 (diff) |
Moved all functionality from GLContextFactory implementations into
concrete GLDrawableFactory implementations. Made GLDrawableFactory
abstract and added GLDrawableFactoryImpl to support creation of
offscreen GLDrawables for non-pbuffer fallback path of GLJPanel.
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/branches/JSR-231@329 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'src/net/java/games/jogl/impl/x11/X11OffscreenGLDrawable.java')
-rw-r--r-- | src/net/java/games/jogl/impl/x11/X11OffscreenGLDrawable.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net/java/games/jogl/impl/x11/X11OffscreenGLDrawable.java b/src/net/java/games/jogl/impl/x11/X11OffscreenGLDrawable.java index 7b60612df..021a4975e 100644 --- a/src/net/java/games/jogl/impl/x11/X11OffscreenGLDrawable.java +++ b/src/net/java/games/jogl/impl/x11/X11OffscreenGLDrawable.java @@ -76,7 +76,7 @@ public class X11OffscreenGLDrawable extends X11GLDrawable { } private void create() { - display = X11GLContextFactory.getDisplayConnection(); + display = X11GLDrawableFactory.getDisplayConnection(); XVisualInfo vis = chooseVisual(false); int bitsPerPixel = vis.depth(); @@ -93,7 +93,7 @@ public class X11OffscreenGLDrawable extends X11GLDrawable { pixmap = 0; throw new GLException("glXCreateGLXPixmap failed"); } - isDoubleBuffered = (X11GLContextFactory.glXGetConfig(display, vis, GLX.GLX_DOUBLEBUFFER, new int[1], 0) != 0); + isDoubleBuffered = (X11GLDrawableFactory.glXGetConfig(display, vis, GLX.GLX_DOUBLEBUFFER, new int[1], 0) != 0); if (DEBUG) { System.err.println("Created pixmap " + toHexString(pixmap) + ", GLXPixmap " + toHexString(drawable) + |