st/mesa: minor optimization in st_DrawBuffers()
authorBrian Paul <brianp@vmware.com>
Tue, 11 Apr 2017 03:09:41 +0000 (21:09 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 13 Apr 2017 03:13:23 +0000 (21:13 -0600)
commitc36d224921da0846b808a317d5b71a78b31bfd3d
tree772c46fbddbc52d3d9b7a3b58dda0fb23c3b9048
parentfbcd709a34ccccf16796b926a3b25d6044fb614b
st/mesa: minor optimization in st_DrawBuffers()

We only do on-demand renderbuffer allocation for window-system FBOs,
not user-created FBOs.  So put the loop inside a conditional.

Plus, add some comments.  No piglit regressions.

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