Boris Dalstein
Boris Dalstein

Reputation: 7748

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

Imagine a situation where:

  1. I use double buffering
  2. I can optimize my drawing code by not calling glClear(), if I assume the backbuffer is in the same state as I left it two swapBuffers() ago.

Can I rely on this assumption?

Upvotes: 4

Views: 641

Answers (1)

datenwolf
datenwolf

Reputation: 162164

The backbuffer contents are undefined after a buffer swap.

Can I rely on this assumption?

No

Upvotes: 4

Related Questions