st/mesa: don't set PIPE_BIND_DISPLAY_TARGET for user-created renderbuffers
authorBrian Paul <brianp@vmware.com>
Sat, 11 Feb 2012 01:57:15 +0000 (18:57 -0700)
committerBrian Paul <brianp@vmware.com>
Wed, 15 Feb 2012 21:07:43 +0000 (14:07 -0700)
commit5a70e12fc0897a3178c73b20d99fc0f11b180374
tree4de6530e5b1b54b31c74eae9a36fbf2f4949388c
parentfc855f85d03c0e3de54443fbfecd235e0d703be9
st/mesa: don't set PIPE_BIND_DISPLAY_TARGET for user-created renderbuffers

The st_renderbuffer_alloc_storage() function is used to allocate both
window-system buffers and user-created renderbuffers.  The later kind
are never directly displayed so don't set PIPE_BIND_DISPLAY_TARGET for
those surfaces.

NOTE: This is a candidate for the 8.0 branch.

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/mesa/state_tracker/st_cb_fbo.c