summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDave Airlie <airliedfreedesktop.org>2005-03-05 04:00:09 +0000
committerDave Airlie <airliedfreedesktop.org>2005-03-05 04:00:09 +0000
commit1bb14ad90c1bf88b45478a40f4c7d8b706070fdb (patch)
tree14cafbab384e8700e9162e400d83d68bcac003c8 /src
parent87030f6618cce065f8f552471648344de2f1d920 (diff)
fix for solo to set the mode, and make solo gcc2 friendly...
From: Stephane Marchesin
Diffstat (limited to 'src')
-rw-r--r--src/glx/mini/miniglx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/glx/mini/miniglx.c b/src/glx/mini/miniglx.c
index bb76ef87865..928b70cddf4 100644
--- a/src/glx/mini/miniglx.c
+++ b/src/glx/mini/miniglx.c
@@ -1103,6 +1103,7 @@ CallCreateNewScreen(Display *dpy, int scrn, __DRIscreen *psc)
drmVersionPtr version;
drm_handle_t hFB;
int junk;
+ drm_magic_t magic;
err_msg = "XF86DRIOpenConnection";
err_extra = NULL;
@@ -1117,8 +1118,6 @@ CallCreateNewScreen(Display *dpy, int scrn, __DRIscreen *psc)
if (fd < 0) goto done;
- drm_magic_t magic;
-
err_msg = "drmGetMagic";
err_extra = NULL;
@@ -2053,6 +2052,7 @@ glXCreateContext( Display *dpy, XVisualInfo *vis,
else
sharePriv = NULL;
+ ctx->driContext.mode = vis->visual->mode;
ctx->driContext.private = dpy->driScreen.createNewContext(dpy, vis->visual->mode,
GLX_WINDOW_BIT, sharePriv, &ctx->driContext);