pmartz / jag-3d

Automatically exported from code.google.com/p/jag-3d
0 stars 1 forks source link

jagDraw::Node callback sets uniforms before glUseProgram #36

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
This is a design issue. jagDraw::Node can have callbacks, and in fact current 
JAG uses this to set transform uniforms (see TransformCallback). Unfortunately 
the callbacks currently execute before CommandMap::execute(), which means, in 
the first frame, the transform uniforms have no way to be specified because 
they can't query the current uniform location. We currently work around this 
issue by punting and not binding the uniform. To see where this hack is 
performed, look at Uniform.cpp, Uniform::executeWithoutMap().

Original issue reported on code.google.com by SkewMat...@gmail.com on 9 Sep 2013 at 8:56