Hi Robert,

I encountered the same problem (Win7 64 Bit, nVidia current driver 280.26), 
while it does not occur on older versions (like 266.58).
The solution of McKay Davis 
(http://forum.openscenegraph.org/viewtopic.php?t=1828)
works around this.

Code:

// Strip [0] from uniform array name to work around driver bugs 
const int len = strlen(name); 
if (len >= 3 && name[len-1] == ']') 
name[len-3] = 0;




Apparently uniform arrays are not used so widely, hence there are just few 
complaints about this.
Anyway, I would support McKay and Glenn. I understand your reluctance to 
support particular platforms / drivers, but in this case the fix would be still 
according to the standard to query the location of the array without brackets. 
So no need to change it back for future drivers, as far as I can see.

Thank you!

Cheers,
Tassilo

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=42211#42211





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to