summaryrefslogtreecommitdiffstats
path: root/src/glut/dos/window.c
diff options
context:
space:
mode:
authorDaniel Borca <[email protected]>2006-03-31 20:53:12 +0000
committerDaniel Borca <[email protected]>2006-03-31 20:53:12 +0000
commit3a3e63dc4fc8b34de7e61607d0d69cf3a77255ca (patch)
tree907e32056413613aabf43ffd2a9ef03a2b5fdb7b /src/glut/dos/window.c
parent3a46dff27d797f5ce067a305880ef1816e4a76d4 (diff)
DMesa now uses OSMesa as a back-end.
Diffstat (limited to 'src/glut/dos/window.c')
-rw-r--r--src/glut/dos/window.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/glut/dos/window.c b/src/glut/dos/window.c
index b922746a9e2..610cf36dcc6 100644
--- a/src/glut/dos/window.c
+++ b/src/glut/dos/window.c
@@ -66,6 +66,10 @@ glutCreateWindow (const char *title)
int i;
int m8width = (_glut_default.width + 7) & ~7;
+ if (!(_glut_default.mode & GLUT_DOUBLE)) {
+ return 0;
+ }
+
/* We set the Visual once. This will be our desktop (graphic mode).
* We should do this in the `glutInit' code, but we don't have any idea
* about its geometry. Supposedly, when we are about to create one
@@ -73,7 +77,7 @@ glutCreateWindow (const char *title)
*/
if (!visual) {
if ((visual=DMesaCreateVisual(_glut_default.x + m8width, _glut_default.y + _glut_default.height, _glut_visual.bpp, _glut_visual.refresh,
- _glut_default.mode & GLUT_DOUBLE,
+ GLUT_SINGLE,
!(_glut_default.mode & GLUT_INDEX),
(_glut_default.mode & GLUT_ALPHA ) ? _glut_visual.alpha : 0,
(_glut_default.mode & GLUT_DEPTH ) ? _glut_visual.depth : 0,