From 7197168828b6d4cf8015c1b57edca6f81ea300c2 Mon Sep 17 00:00:00 2001 From: Andy Spencer Date: Tue, 10 Nov 2009 00:23:44 +0000 Subject: [PATCH] Fix rendering plugins if they're loaded after radar.so Radar sets glColor to transparent at the end of it's expose, this was never reset to something opaque so the world was being drawn transparent. Fixed by resetting glColor in set_visuals. --- src/gis-opengl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gis-opengl.c b/src/gis-opengl.c index 1b21990..60ed821 100644 --- a/src/gis-opengl.c +++ b/src/gis-opengl.c @@ -85,6 +85,7 @@ static void set_visuals(GisOpenGL *self) gdouble rg = MAX(0, 1-(elev/20000)); gdouble blue = MAX(0, 1-(elev/50000)); glClearColor(MIN(0.65,rg), MIN(0.65,rg), MIN(1,blue), 1.0f); + glColor4f(1, 1, 1, 1); glDisable(GL_ALPHA_TEST); -- 2.43.2