Make IsTransformFeedback() return false before BindTransformFeedback()
authorMatt Turner <mattst88@gmail.com>
Wed, 19 Dec 2012 21:43:31 +0000 (13:43 -0800)
committerMatt Turner <mattst88@gmail.com>
Sat, 22 Dec 2012 04:03:07 +0000 (20:03 -0800)
commitfd93d55141f11069fb76a9b377ad1af88d0ecdd3
treea50a44d58a3830168b61cd14b0819365c4ccadaa
parent54203ef5ace8073327f0b41b6abbe4ce5b23fa65
Make IsTransformFeedback() return false before BindTransformFeedback()

The GL 4.3 an ES 3.0 specs say

   A transform feedback object is created by binding a name returned by
   GenTransformFeedbacks with the command
      void BindTransformFeedback( enum target, uint id );

Fixes arb_transform_feedback2-istransformfeedback and part of
es3conform's CoverageES30.test.

Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/main/mtypes.h
src/mesa/main/transformfeedback.c