OSDN Git Service

mesa: Set the gl_array_object::ARBsemantics flag at the right time
authorIan Romanick <ian.d.romanick@intel.com>
Tue, 31 Jan 2012 16:00:48 +0000 (09:00 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Thu, 2 Feb 2012 17:07:14 +0000 (10:07 -0700)
commite06b1c65bc576a9b239841cbe3a8a8c2d6a8d09f
treedb89e329cf875a343adbb4b6e538874c80a93243
parentaf1477b088448aeca762f515410c80054cb225b9
mesa: Set the gl_array_object::ARBsemantics flag at the right time

With 0963990 the flag was only set when Bind created the object.  In
all cases where ::ARBsemantics could be true, this path never
happened.  Instead, add a _Used flag to track whether a VAO has ever
been bound.  On the first Bind, set the _Used flag, and set the
ARBsemantics flag to the correct value.

NOTE: This is a candidate for release branches.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=45423
src/mesa/main/arrayobj.c
src/mesa/main/mtypes.h