Is backbuffer state (from previous draws) saved after swapbuffers ()?

Imagine a situation where:

  • I use double buffering
  • I can optimize the drawing code without calling glClear() if I assume that the backbuffer is in the same state as I left it with two swapBuffers() back.

Can I rely on this assumption?

+4
source share
1 answer

The contents of the buffer are undefined after replacing the buffer.

Can I rely on this assumption?

No

+3
source

Source: https://habr.com/ru/post/1488271/


All Articles