|
From: James W. W. <os...@jw...> - 2006-02-21 01:42:27
|
On Feb 20, 2006, at 4:56 PM, lo=EFc s=E9galou wrote: > Hello the Quesa Team, > > I have some trouble to compile Quesa under Linux (Mandriva 2006 - =20 > AMD 64bit) : > > ./Source/Renderers/Interactive/IRTexture.c: In function 'TQ3Status =20 > ir_texture_load(TQ3CachedTexture*)': > ./Source/Renderers/Interactive/IRTexture.c:526: error: cast from =20 > 'TQ3CachedTexture*' to 'GLuint' loses precision > ./Source/Renderers/Interactive/IRTexture.c: In function 'TQ3Status =20 > IRRenderer_Texture_Set(OpaqueTQ3Object*, TQ3InteractiveData*, =20 > OpaqueTQ3Object*, OpaqueTQ3Object*)': > ./Source/Renderers/Interactive/IRTexture.c:863: error: cast from =20 > 'TQ3CachedTexture*' to 'GLuint' loses precision > > > (using version from CVS) > > Any idea how to solve this problem ? There are two ways to approach this, the easy way and the hard way. =20 The easy way would be to find a way to make the compiler stop =20 complaining. Actually, I am surprised that it is an error rather =20 than a warning. What happens if you use reinterpret_cast instead of =20 a C-style cast? The harder way would be for us to stop using a pointer as an OpenGL =20 texture name. Instead perhaps we could use glGenTextures, and add =20 that field to the TQ3CachedTexture structure.= |