[GEM-cvs] SF.net SVN: pd-gem:[4503] trunk/Gem/src/Pixes/pix_frei0r.cpp
Brought to you by:
zmoelnig
From: <zmo...@us...> - 2011-08-28 12:47:42
|
Revision: 4503 http://pd-gem.svn.sourceforge.net/pd-gem/?rev=4503&view=rev Author: zmoelnig Date: 2011-08-28 12:47:36 +0000 (Sun, 28 Aug 2011) Log Message: ----------- initialize colorspace of output image, even if we can change plugins Modified Paths: -------------- trunk/Gem/src/Pixes/pix_frei0r.cpp Modified: trunk/Gem/src/Pixes/pix_frei0r.cpp =================================================================== --- trunk/Gem/src/Pixes/pix_frei0r.cpp 2011-08-26 16:13:47 UTC (rev 4502) +++ trunk/Gem/src/Pixes/pix_frei0r.cpp 2011-08-28 12:47:36 UTC (rev 4503) @@ -291,6 +291,8 @@ { // throw(GemException("Gem has been compiled without Frei0r-support!")); int can_rgba=0; + m_image.setCsizeByFormat(GL_RGBA); + if(!s || s==&s_) { m_canopen=true; return; @@ -298,7 +300,6 @@ char *pluginname = s->s_name; m_plugin = new F0RPlugin(pluginname, getCanvas()); - m_image.setCsizeByFormat(GL_RGBA); unsigned int numparams = m_plugin->m_parameterNames.size(); char tempVt[5]; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |