From 0570fcfd93a29dcd9d41bc709edd78a7c1b4e1e7 Mon Sep 17 00:00:00 2001 From: Sean D'Epagnier Date: Tue, 21 Nov 2006 09:35:49 +0000 Subject: Added correct include files to files, No longer modify cmap if the device is truecolor (messes up dual monitors with vt switching) --- src/glut/fbdev/fbdev.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/glut/fbdev/fbdev.c') diff --git a/src/glut/fbdev/fbdev.c b/src/glut/fbdev/fbdev.c index ce6419816d..7b46d54592 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; } -- cgit v1.2.3