mesa: Refactor set_ubo_binding()
authorFredrik Höglund <fredrik@kde.org>
Fri, 15 Nov 2013 18:51:02 +0000 (19:51 +0100)
committerFredrik Höglund <fredrik@kde.org>
Fri, 2 May 2014 01:00:41 +0000 (03:00 +0200)
commitf65a0c19a50e283dcbfe9424f5c6d14e61eb4118
tree4cf51c67a8f2e49a2c03bc750197eaa8749ef820
parent28d7335810c2419fa6931260c30717dcf618109a
mesa: Refactor set_ubo_binding()

Make set_ubo_binding() just update the binding, and move the code
that does validation, flushes the vertices etc. into a new
bind_uniform_buffer() function.

Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/main/bufferobj.c