OSDN Git Service

mesa: don't use genned but unnamed xfb objects.
authorDave Airlie <airlied@redhat.com>
Mon, 9 May 2016 06:09:13 +0000 (16:09 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 9 May 2016 20:06:09 +0000 (06:06 +1000)
commitbbc6a275901b69ea2804f374cc03c2c2448d8e55
tree0f1d044015020c3b420540b4510203ecd05b1d54
parenteafe3905d93efbe5a5f0267d23608cc71c1f96fe
mesa: don't use genned but unnamed xfb objects.

If we try to draw or query an XFB object that hasn't been bound,
we shouldn't return any information.

This fixes a couple if cases in:
GL33-CTS.transform_feedback.api_errors_test

The ObjectLabel test is inspired by another test.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/mesa/main/api_validate.c
src/mesa/main/objectlabel.c