From 739bdc277664dce3c4020a9b3a3c8ff1aab0e577 Mon Sep 17 00:00:00 2001 From: fredkiefer Date: Sun, 8 Feb 2009 18:36:25 +0000 Subject: [PATCH] Patch by Matt Rice to get OpenGL working again on X11. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@27816 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 5 +++++ Source/x11/XGGLContext.m | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 7db3f94..9c07974 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-02-08 Matt Rice + + * Source/x11/XGGLContext.m (-[XGXSubWindow initWithView:visualInfo:]): + Use the depth provided by the VisualInfo not the parent window. + 2009-02-06 Fred Kiefer * Source/cairo/CairoGState.m (-copyWithZone:): Correction to last diff --git a/Source/x11/XGGLContext.m b/Source/x11/XGGLContext.m index ac752d4..f562d73 100644 --- a/Source/x11/XGGLContext.m +++ b/Source/x11/XGGLContext.m @@ -123,7 +123,7 @@ xwindowid = XCreateWindow(win_info->display, win_info->ident, x, y, width, height, 0, - CopyFromParent, InputOutput, xVisualInfo->visual, + xVisualInfo->depth, InputOutput, xVisualInfo->visual, mask, &window_attributes); XMapWindow(win_info->display, xwindowid);