Hi,

Sorry to bug you again with this topic, but I'm getting the very same warnings 
on my machine.

I surrounded each troubling line with

Code:

#pragma warning(push)
#pragma warning(disable : 4312)
...LINE WITH WARNING...
#pragma warning(pop)




but thats just cosmetics. 

The vertex buffer code now looks rather different from the 2.8.3 past. Can you 
give some insight into why this was changed (especially the Array mutable const 
GLvoid* _vboOffset versus BufferEntry unsigned int offset part)? 

I'm still not sure that the warning can be ignored. Of course compiling it for 
and using it on a 64bit machine works, but what happens when the code was 
compiled for 32 bit and is used on a 64 bit machine; wouldn't that mean that 
the cast of a negative int is wrongly cast to a positive 64bit pointer position 
(see http://msdn.microsoft.com/en-us/library/h97f4b9y%28v=vs.80%29.aspx)?

I guess as the BufferEntry offset is always positive so thats not a problem 
here, thus the warnings can be ignored right? On the other hand the conversion 
from unsigned int to GLsizeiptrARB will make it signed again so I'm still not 
100% sure.

Cheers,
Oliver

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





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

Reply via email to