Re: [osg-users] Conversion from 'GLsizeiptrARB' to 'const GLvoid *' of greater size

2011-09-23 Thread Alexandre Amalric
Hi Jean-Sébastien, Just to let you know that you're not alone to see those Warning, I'm seeing them too under VS 2008 with 32bits build... You can hide them using option : /wd 4312 Kind regards, * * 2010/1/11 Robert Osfield robert.osfi...@gmail.com Hi JS, On Mon, Jan 11, 2010 at 2:41 PM,

Re: [osg-users] Conversion from 'GLsizeiptrARB' to 'const GLvoid *' of greater size

2011-07-12 Thread Oliver Neumann
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

Re: [osg-users] Conversion from 'GLsizeiptrARB' to 'const GLvoid *' of greater size

2010-02-09 Thread Torben Dannhauer
Hi, I have the same warning with OSG 2.9.6+ (2010/02/10) My Dev-env is: Vista 32bit VS 2005 SP1 Thank you! Cheers, Torben -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=23888#23888 ___

Re: [osg-users] Conversion from 'GLsizeiptrARB' to 'const GLvoid *' of greater size

2010-01-11 Thread Robert Osfield
Hi J-S, I'm afraid I don't have any further ideas. I think we just have to return to the time/space machine that eradicates all Windows installs and replaces them with a less troublesome development platform ;-) Disabling the warning would not be idea as it could hide some genuine problems.

Re: [osg-users] Conversion from 'GLsizeiptrARB' to 'const GLvoid *' of greater size

2010-01-11 Thread Jean-Sébastien Guay
Hi Robert, Disabling the warning would not be idea as it could hide some genuine problems. Perhaps just disable it for the files that are causing problems? So would you accept a change that pushes the warning disable state at the start of include/osg/State, disables that warning for the

Re: [osg-users] Conversion from 'GLsizeiptrARB' to 'const GLvoid *' of greater size

2010-01-11 Thread Robert Osfield
Hi JS, On Mon, Jan 11, 2010 at 2:41 PM, Jean-Sébastien Guay jean-sebastien.g...@cm-labs.com wrote: So would you accept a change that pushes the warning disable state at the start of include/osg/State, disables that warning for the file, and pops the warning disable state at the end of the

Re: [osg-users] Conversion from 'GLsizeiptrARB' to 'const GLvoid *' of greater size

2010-01-08 Thread Robert Osfield
Hi JS, I'm surprised that you are seeing this warning as for a 32bit build the void* should be 32bits and GLsizeiptr should be 32bit. When under a 64bit build the GLsizeiptr should be 64bit. Even if GLsizeiptr was 32bit and void* was 64bit one should still be able to cast it safely, the

Re: [osg-users] Conversion from 'GLsizeiptrARB' to 'const GLvoid *' of greater size

2010-01-08 Thread Jean-Sébastien Guay
Hi Robert, I'm surprised that you are seeing this warning as for a 32bit build the void* should be 32bits and GLsizeiptr should be 32bit. When under a 64bit build the GLsizeiptr should be 64bit. Even if GLsizeiptr was 32bit and void* was 64bit one should still be able to cast it safely, the

[osg-users] Conversion from 'GLsizeiptrARB' to 'const GLvoid *' of greater size

2010-01-07 Thread Jean-Sébastien Guay
Hi Robert, I've been getting this warning 7 times per compiled file for a little while: warning C4312: 'type cast' : conversion from 'GLsizeiptrARB' to 'const GLvoid *' of greater size It happens on lines like this: setVertexPointer(array-getDataSize(),array-getDataType(),0,(const GLvoid