diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2002-12-18 15:06:36 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2002-12-18 15:06:36 +0000 |
commit | 03516d9efa76720be2b0b8677573a5f93845c2da (patch) | |
tree | e6cda83d0b5f863aaa15ab5bca8c7637fc71d2b4 /src/glut/dos/init.c | |
parent | c0fc0d4e5f5c246fc2459348a3d114b232d0c545 (diff) |
DOS updates from Daniel Borca.
Diffstat (limited to 'src/glut/dos/init.c')
-rw-r--r-- | src/glut/dos/init.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/glut/dos/init.c b/src/glut/dos/init.c index a6d7e830b0..4ee939b487 100644 --- a/src/glut/dos/init.c +++ b/src/glut/dos/init.c @@ -19,7 +19,7 @@ */
/*
- * DOS/DJGPP glut driver v1.0 for Mesa 4.0
+ * DOS/DJGPP glut driver v1.3 for Mesa 5.0
*
* Copyright (C) 2002 - Borca Daniel
* Email : dborca@yahoo.com
@@ -33,6 +33,15 @@ void APIENTRY glutInit (int *argcp, char **argv)
{
+ const char *env;
+
+ if ((env = getenv("DMESA_GLUT_BPP")) != NULL) {
+ g_bpp = atoi(env);
+ }
+ if ((env = getenv("DMESA_GLUT_REFRESH")) != NULL) {
+ g_refresh = atoi(env);
+ }
+
glutGet(GLUT_ELAPSED_TIME);
}
|