[mapserver-commits] r10739 - sandbox/mapserver6
svn at osgeo.org
svn at osgeo.org
Fri Nov 19 10:42:32 EST 2010
Author: tbonfort
Date: 2010-11-19 07:42:31 -0800 (Fri, 19 Nov 2010)
New Revision: 10739
Modified:
sandbox/mapserver6/mapoglrenderer.cpp
Log:
avoid segfaulting on unimplemented stuff (cache is null)
Modified: sandbox/mapserver6/mapoglrenderer.cpp
===================================================================
--- sandbox/mapserver6/mapoglrenderer.cpp 2010-11-19 14:51:07 UTC (rev 10738)
+++ sandbox/mapserver6/mapoglrenderer.cpp 2010-11-19 15:42:31 UTC (rev 10739)
@@ -405,6 +405,9 @@
{
loadLine(p, width, patternlength, pattern);
}
+ /* FIXME */
+ if (p->renderer_cache == NULL)
+ return;
OglCache* cache = (OglCache*) p->renderer_cache;
GLuint texture = cache->texture;
if (cache->patternDistance > 0)
More information about the mapserver-commits
mailing list