Original Post
I have that :
...
GLuint LoadTexture( const char * filename, int wrap )
{
int width, height;
BYTE * data;
FILE * file;
file = fopen( filename, "rb" );
if ( file == NULL ) return 0;
width = 256;
height = 256;
data = malloc( width * height * 3 ); //error with data
fread( data, width * height * 3, 1, file );
fclose( file );
....
} ...
and I have an error that I really don''t understand :
cannot convert from ''void *'' to ''unsigned char *''
can you describe me why this is wrong ?