Skip to main content
GameDev.net gamedev.net
🔒 Locked

OpenGL default texture image

Started by glJack Mar 5, 2007 at 8:59 PM 2 replies 3.4k views
Original Post
glJack
glJack
Hello everybody. Does OpenGL spec say something about default texture images of 0'th texture object ??
zedz
zedz
im sure it does, but exactly what u will have to check out the spec.
u can also alter the default texture yourself (often used before opengl1.1)
glJack
glJack
zedz, thank you for the reply.

I asked because when I run my program on nVidia and ATI hardware, I see that their opengl drivers initialize 0'th texture object image with solid black color (alpha = 1.0). But when I run the same program on Intel GMA 950 I get RGBA garbage, often with alpha equal to 0.

I searched the spec, and everything i found was: "default texture object contains data which had been defined upon OpenGL initialization", but spec doesn't say anything about whether gl driver has to init default texture with some data, or doesn't.

I can set 0'th texture object data myself. But I am curios, whether it is legal to rely on 0'th texture object as on a initialized texture object (with some definite data).

I searched through all the spec and couldn't find anything about 0'th texture object initial data. Does anybody know where this kind of information can be found??

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.