Originally posted by Vlasko:
[b]I have made the texturing tutorial from nehe but the texture won’t show on quad so i have tested GL_TEXTURE_2D with glIsEnabled()
glEnable(GL_TEXTURE_2D); //no other command between //
if(glIsenabled(GL_TEXTURE_2D)==GL_FALSE)printf(“Error”);
I always get the Error message and also the same with GL_DEPTH_TEST
Have I something wrong linked(no error shown)? or something else ? [/b]
after glTexImage2D
I’ve added error checking routine
GLenum err = glGetError();
if (err)
{
printf("%i",err);
exit(1);
}
it produces error number 1282 (or with gluErrorString() - invalid operation(i’ve got a localized string on the screen so its just translation :-)) can anybody help ?