#127638 - goruka - Thu May 03, 2007 7:01 pm
Hi! I'm drawing a ton of geometry to the scene, depending the object, and before each glBegin/glEnd, I glEnable or glDisabe textures using libnds call, depending on wether what i'm going to draw has textures or not.
The crap in this case is that in some frames, texture is enabled, and in other frames it's not and it shows everything in plain gray (what i assigned before in glMaterial colors). I even foreced glEnable( GL_TEXTURE_2D ) right before the call to glBegin so anything has texture, but this behavior still persists.. i may move the camera around and all, and suddendly I get flashes (of 1 frame or more) of the texture being disabled. Texture is enabled most of the time, but it gets disabled by few frame-intervals.
So, is there anything that may be going on in here that I dont know, that can possibly disable textures randomly?
Thanks!
The crap in this case is that in some frames, texture is enabled, and in other frames it's not and it shows everything in plain gray (what i assigned before in glMaterial colors). I even foreced glEnable( GL_TEXTURE_2D ) right before the call to glBegin so anything has texture, but this behavior still persists.. i may move the camera around and all, and suddendly I get flashes (of 1 frame or more) of the texture being disabled. Texture is enabled most of the time, but it gets disabled by few frame-intervals.
So, is there anything that may be going on in here that I dont know, that can possibly disable textures randomly?
Thanks!