summaryrefslogtreecommitdiff
path: root/src/glut/fbdev/fbdev.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/glut/fbdev/fbdev.c')
-rw-r--r--src/glut/fbdev/fbdev.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/glut/fbdev/fbdev.c b/src/glut/fbdev/fbdev.c
index ce64198..7b46d54 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;
}