[mapserver-commits] r11047 - trunk/mapserver
svn at osgeo.org
svn at osgeo.org
Thu Mar 3 14:20:21 EST 2011
Author: warmerdam
Date: 2011-03-03 11:20:21 -0800 (Thu, 03 Mar 2011)
New Revision: 11047
Modified:
trunk/mapserver/mapagg.cpp
Log:
ensure IMAGEMODE_RGBA renderbuffers are set to use alpha
Modified: trunk/mapserver/mapagg.cpp
===================================================================
--- trunk/mapserver/mapagg.cpp 2011-03-03 19:19:39 UTC (rev 11046)
+++ trunk/mapserver/mapagg.cpp 2011-03-03 19:20:21 UTC (rev 11047)
@@ -657,7 +657,8 @@
r->m_pixel_format.attach(r->m_rendering_buffer);
r->m_renderer_base.attach(r->m_pixel_format);
r->m_renderer_scanline.attach(r->m_renderer_base);
- if (format->transparent || !bg || !MS_VALID_COLOR(*bg)) {
+ if (format->transparent || !bg || !MS_VALID_COLOR(*bg)
+ || format->imagemode == MS_IMAGEMODE_RGBA ) {
r->m_renderer_base.clear(AGG_NO_COLOR);
r->use_alpha = true;
} else {
More information about the mapserver-commits
mailing list