From: Andy Spencer Date: Tue, 10 Nov 2009 00:23:44 +0000 (+0000) Subject: Fix rendering plugins if they're loaded after radar.so X-Git-Tag: v0.4~161 X-Git-Url: http://pileus.org/git/?p=grits;a=commitdiff_plain;h=7197168828b6d4cf8015c1b57edca6f81ea300c2 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. --- 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);