summaryrefslogtreecommitdiff
path: root/src/glut/dos/init.c
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2003-08-28 16:57:01 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2003-08-28 16:57:01 +0000
commit760960028f189e3afcbfef1f877dbd5b86fd1ae4 (patch)
treed328ec20f2561c00199f6eb14a98edef0069f22e /src/glut/dos/init.c
parent9e94aaf6e377843194c4b9ab6e2e96f06aef88f2 (diff)
Updates from Daniel Borca
Diffstat (limited to 'src/glut/dos/init.c')
-rw-r--r--src/glut/dos/init.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/glut/dos/init.c b/src/glut/dos/init.c
index 22bab9f8af..d30f270c64 100644
--- a/src/glut/dos/init.c
+++ b/src/glut/dos/init.c
@@ -35,6 +35,7 @@
#define DEFAULT_HEIGHT 300
#define DEFAULT_BPP 16
+#define ALPHA_SIZE 8
#define DEPTH_SIZE 16
#define STENCIL_SIZE 8
#define ACCUM_SIZE 16
@@ -42,6 +43,7 @@
GLuint g_bpp = DEFAULT_BPP;
+GLuint g_alpha = ALPHA_SIZE;
GLuint g_depth = DEPTH_SIZE;
GLuint g_stencil = STENCIL_SIZE;
GLuint g_accum = ACCUM_SIZE;
@@ -67,6 +69,9 @@ void APIENTRY glutInit (int *argc, char **argv)
if ((env = getenv("DMESA_GLUT_BPP")) != NULL) {
g_bpp = atoi(env);
}
+ if ((env = getenv("DMESA_GLUT_ALPHA")) != NULL) {
+ g_alpha = atoi(env);
+ }
if ((env = getenv("DMESA_GLUT_DEPTH")) != NULL) {
g_depth = atoi(env);
}