]> Pileus Git - grits/commitdiff
Fix rendering plugins if they're loaded after radar.so
authorAndy Spencer <andy753421@gmail.com>
Tue, 10 Nov 2009 00:23:44 +0000 (00:23 +0000)
committerAndy Spencer <andy753421@gmail.com>
Tue, 10 Nov 2009 00:23:44 +0000 (00:23 +0000)
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

index 1b219904a0f1b0ea33295d6c5db776be8a1f1b47..60ed8218304af8c790a2160d55c95272155bff8b 100644 (file)
@@ -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);