[grits] Request direct connection when setting up OpenGL
- From: Andy Spencer <andys src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grits] Request direct connection when setting up OpenGL
- Date: Sat, 15 Dec 2012 08:52:57 +0000 (UTC)
commit 6bad3abae971c56ab313545276b3e415a8248039
Author: Andy Spencer <andy753421 gmail com>
Date: Thu Dec 13 17:08:43 2012 +0000
Request direct connection when setting up OpenGL
This fixes an OpenGL error with some graphics driver such as the open
source Intel drivers.
src/gtkgl.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gtkgl.c b/src/gtkgl.c
index b10c52d..6a62e86 100644
--- a/src/gtkgl.c
+++ b/src/gtkgl.c
@@ -75,7 +75,7 @@ void gtk_gl_enable(GtkWidget *widget)
XVisualInfo *xvinfo = glXChooseVisual(xdisplay, nscreen, attribs);
if (!xvinfo)
g_error("GtkGl: enable - unable to get valid OpenGL Visual");
- GLXContext context = glXCreateContext(xdisplay, xvinfo, NULL, False);
+ GLXContext context = glXCreateContext(xdisplay, xvinfo, NULL, True);
g_object_set_data(G_OBJECT(widget), "glcontext", context);
/* Fix up colormap */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]