PDA

View Full Version : Resource build-up... then crash



gordon1
01-13-2009, 06:05 PM
hi,

What if I do a glEnable(GL_BLEND) every frame of my animation,

then forget to match it with a glDisable(GL_BLEND),

can this cause an overflow of some kind, and a crash?

Thanks.

tkunert
01-14-2009, 12:09 AM
Because the blending only changes the way how the fragments are merged with the pixels of the framebuffer, it definitely shouldn't cause any overflows or crashs.

I think you have to look for another cause if you experience application crashes.

Brolingstanz
01-14-2009, 04:08 AM
fyi, state that's stack-able generally comes in Push/Pop* pairs. (I think just about all of the push/pops are deprecated now, btw.)
Try glGetError to see if something GL related is amiss..