st/mesa: add some _mesa_is_winsys_fbo() assertions
authorBrian Paul <brianp@vmware.com>
Tue, 11 Apr 2017 03:11:55 +0000 (21:11 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 13 Apr 2017 03:13:23 +0000 (21:13 -0600)
commit46f49d6fdcb9772fcc7ff3e533646b1b44c5adb9
tree4649b27c670866eb72840d1a8a48ced84e5fd1e6
parentc36d224921da0846b808a317d5b71a78b31bfd3d
st/mesa: add some _mesa_is_winsys_fbo() assertions

A few functions related to FBOs/renderbuffers should only be used with
window-system buffers, not user-created FBOs.  Assert for that.
Add additional comments.  No piglit regressions.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/state_tracker/st_cb_fbo.c
src/mesa/state_tracker/st_manager.c