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.


------------------------------------------------------------------------------
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management 
Up to 160% more powerful than alternatives and 25% more efficient. 
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
_______________________________________________
pd-gem-CVS mailing list
pd-gem-CVS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pd-gem-cvs

Reply via email to