Hi,

Dirk Reiners wrote:
	Hi Anne,

Anne Braun wrote:
  
Hey Daniel,

thanks for your hint. Using your little trick, I was able to debug my 
fragment shader.

The working code looks like this:
MFVec3f parameters = MFVec3f(); <- without specifying the field size!!!
    

Ah! Sorry we missed that one.

Yes, passing in the size will set the actual size to 3, not just reserve 3 
elements. So your push_backs were put into elements 3, 4 and 5, and you got 
uninitialized data into the shader in 0, 1 and 2.
  
That's new to me, too. Thanks for the explanation!
Thanks to Daniel for the hint!
  
Always happy to help. ;)

Daniel

------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
Opensg-users mailing list
Opensg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to