R.Wieser
2022-03-18 16:57:39 UTC
Hello all,
I've been using OpenGL to show some scenery, and am adding textures (while
loading the models) using the glTexImage2D call (which takes raw pixels).
The problem is that just a few textures of the 80 I add turn out to be a
fully opaque white*. However, when I pre-load such a texture it turns out
fine.
* in the loaded model as well as in a debugging model in which I display all
loaded textures as squares in a grid (read: its not a problem just of the
model).
an glGetError call just after the glTexImage2D one always shows Zero (no
error)
And oh yeah, the effect seems to be static. I've ran the program a number
of times and even on different days (rebooting the 'puter) in between, but
its always the same textures that go wrong.
I've also tried to change the raw pixel data for all textures to fully
transparent just before calling glTexImage2D, but the opaque white textures
stayed - which seems to indicate that its really related to the glTexImage2D
call.
The question is, what can be causing it ?
Regards,
Rudy Wieser
I've been using OpenGL to show some scenery, and am adding textures (while
loading the models) using the glTexImage2D call (which takes raw pixels).
The problem is that just a few textures of the 80 I add turn out to be a
fully opaque white*. However, when I pre-load such a texture it turns out
fine.
* in the loaded model as well as in a debugging model in which I display all
loaded textures as squares in a grid (read: its not a problem just of the
model).
an glGetError call just after the glTexImage2D one always shows Zero (no
error)
And oh yeah, the effect seems to be static. I've ran the program a number
of times and even on different days (rebooting the 'puter) in between, but
its always the same textures that go wrong.
I've also tried to change the raw pixel data for all textures to fully
transparent just before calling glTexImage2D, but the opaque white textures
stayed - which seems to indicate that its really related to the glTexImage2D
call.
The question is, what can be causing it ?
Regards,
Rudy Wieser