[gameprogrammer] weir cast problem in 64 bits system

  • From: Roger Durañona <luo_hei@xxxxxxxx>
  • To: gameprogrammer@xxxxxxxxxxxxx
  • Date: Tue, 22 Jul 2008 08:28:58 -0400

Im trying to use Cal3d in my project and I have found a weird problem. Cal3d API returns some values as void*, that should be casted to GLint like this:


glBindTexture(GL_TEXTURE_2D, (GLint)pCalRenderer->getMapUserData(0));

This works on some systems but in others the compiler produces an error: cast from void* to GLint loses precision. The only common thing I can find between the 2 setups where I get the error is that they are both 64 bits systems (Ubuntu and Gentoo). Can someboy suggest me a solution for this, or at least the cause of the problem?

--
"La naturaleza y sus leyes yacían ocultas en la noche, Dios dijo , "Sea Newton" y todo fue luz", Alexander Pope "Pero esto no fue lo último. El diablo gritó "Sea Einstein", y se restableció la situación", John Collins Squire


                
______________________________________________ LLama Gratis a cualquier PC del Mundo. Llamadas a fijos y móviles desde 1 céntimo por minuto. http://es.voice.yahoo.com


---------------------
To unsubscribe go to http://gameprogrammer.com/mailinglist.html


Other related posts: