Confirmed users
753
edits
| Line 116: | Line 116: | ||
== Always call glClear immediately after glBindFramebuffer == | == Always call glClear immediately after glBindFramebuffer == | ||
See the Adreno 200 document, section 3.2.1: ''"it is imperative to (a) use clears when switching Frame Buffer Objects (FBOs) to avoid having the driver tries to save/restore GMEM contents, and (b) always clear the depth-buffer | See the Adreno 200 document, section 3.2.1: ''"it is imperative to (a) use clears when switching Frame Buffer Objects (FBOs) to avoid having the driver tries to save/restore GMEM contents, and (b) always clear the depth-buffer at the start of a frame."'' | ||
at the start of a frame."'' | |||
That makes sense, so we should always do it. Concretely, this means that we should do a glClear after every glBindFramebuffer call, ideally right after it, or at least before any draw-call. | That makes sense, so we should always do it. Concretely, this means that we should do a glClear after every glBindFramebuffer call, ideally right after it, or at least before any draw-call. | ||