From 76e7d4bd24490eb73914fa7461baf86da17f584d Mon Sep 17 00:00:00 2001 From: Kenneth Russel Date: Thu, 23 Feb 2006 04:43:21 +0000 Subject: Attempted fix for Issue 206: glTexImage2D fails on external context Apparently failed to set mostRecentDisplay for X11ExternalGLContexts. Hard to believe this could have been broken for this long, though. No test case, therefore "attempted fix". git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@633 232f8b59-042b-4e1e-8c03-345bb8c30851 --- src/classes/com/sun/opengl/impl/x11/X11ExternalGLContext.java | 1 + 1 file changed, 1 insertion(+) (limited to 'src/classes/com/sun/opengl/impl/x11') diff --git a/src/classes/com/sun/opengl/impl/x11/X11ExternalGLContext.java b/src/classes/com/sun/opengl/impl/x11/X11ExternalGLContext.java index e0446f4d6..80d9c6f1a 100755 --- a/src/classes/com/sun/opengl/impl/x11/X11ExternalGLContext.java +++ b/src/classes/com/sun/opengl/impl/x11/X11ExternalGLContext.java @@ -66,6 +66,7 @@ public class X11ExternalGLContext extends X11GLContext { } protected int makeCurrentImpl() throws GLException { + mostRecentDisplay = drawable.getDisplay(); if (firstMakeCurrent) { firstMakeCurrent = false; return CONTEXT_CURRENT_NEW; -- cgit v1.2.3