We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi,
Basically I wanted to know if calling glClear with all buffers bits to clear is faster than clearing them all individually.
So:
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
is faster thabn:
glClear(GL_COLOR_BUFFER_BIT);glClear(GL_DEPTH_BUFFER_BIT);
glClear(GL_COLOR_BUFFER_BIT);
glClear(GL_DEPTH_BUFFER_BIT);
Cheers!
Thanks! This is what I wanted to confirm. The individual glClears are one after the other without any other GL call in between.