diff options
author | Sean D'Epagnier <[email protected]> | 2006-11-21 09:35:49 +0000 |
---|---|---|
committer | Sean D'Epagnier <[email protected]> | 2006-11-21 09:35:49 +0000 |
commit | 0570fcfd93a29dcd9d41bc709edd78a7c1b4e1e7 (patch) | |
tree | 142c1e827670f35d68cf95a4f85f329c6794a24c /src/glut/fbdev/fbdev.c | |
parent | 0337e5635f8d18fdf9dac734141e5302db6d1d49 (diff) |
Added correct include files to files,
No longer modify cmap if the device is truecolor (messes up dual monitors
with vt switching)
Diffstat (limited to 'src/glut/fbdev/fbdev.c')
-rw-r--r-- | src/glut/fbdev/fbdev.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/glut/fbdev/fbdev.c b/src/glut/fbdev/fbdev.c index ce6419816dd..7b46d545920 100644 --- a/src/glut/fbdev/fbdev.c +++ b/src/glut/fbdev/fbdev.c @@ -571,7 +571,8 @@ void SetVideoMode(void) } /* initialize colormap */ - LoadColorMap(); + if(FixedInfo.visual != FB_VISUAL_TRUECOLOR) + LoadColorMap(); } void CreateBuffer() @@ -786,6 +787,7 @@ void glutDestroyWindow(int win) glFBDevDestroyContext(Context); glFBDevDestroyBuffer(Buffer); glFBDevDestroyVisual(Visual); + Visual = NULL; } |