compiling on mac and failures with inexact gl calls
Posted: Sat Aug 25, 2007 2:00 am
Hi,
compiling on tiger on a c2d geives me this:
objconv/basemaker/base_maker_texture.cpp: In member function ‘void Texture::loadTexture(FILE*, void (*)(Texture::FileData*, unsigned char**))’:
objconv/basemaker/base_maker_texture.cpp:281: error: invalid conversion from ‘unsigned int*’ to ‘GLuint*’
objconv/basemaker/base_maker_texture.cpp:281: error: initializing argument 2 of ‘void glGenTextures(GLsizei, GLuint*)’
It's due to inexact type usage (i know GLuint is unsigned int, but the compiler refuses to know this....). Please add explicit typecasts or use the "right" types to begin with.
Thx
compiling on tiger on a c2d geives me this:
objconv/basemaker/base_maker_texture.cpp: In member function ‘void Texture::loadTexture(FILE*, void (*)(Texture::FileData*, unsigned char**))’:
objconv/basemaker/base_maker_texture.cpp:281: error: invalid conversion from ‘unsigned int*’ to ‘GLuint*’
objconv/basemaker/base_maker_texture.cpp:281: error: initializing argument 2 of ‘void glGenTextures(GLsizei, GLuint*)’
It's due to inexact type usage (i know GLuint is unsigned int, but the compiler refuses to know this....). Please add explicit typecasts or use the "right" types to begin with.
Thx