From 730e752dc282ab4230e6fc80d934011bffdc6007 Mon Sep 17 00:00:00 2001 From: Kenneth Russel Date: Tue, 19 Jul 2005 01:00:42 +0000 Subject: 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 --- src/net/java/games/jogl/impl/x11/X11OffscreenGLDrawable.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/net/java/games/jogl/impl/x11/X11OffscreenGLDrawable.java') 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) + -- cgit v1.2.3