mesa/objectlabel: don't return info on genned but never bound textures.
authorDave Airlie <airlied@redhat.com>
Mon, 9 May 2016 06:13:45 +0000 (16:13 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 9 May 2016 20:06:09 +0000 (06:06 +1000)
commit2d41eb313fa354560e92e60336e5b0cdd40137f2
treec1dd293a6c8e102ce8cc72af9cbf45b77f95c916
parentbbc6a275901b69ea2804f374cc03c2c2448d8e55
mesa/objectlabel: don't return info on genned but never bound textures.

This fixes some cases in the CTS KHR debug tests where it uses
glIsTexture to find an invalid ID and then call GetObjectLabel.

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/objectlabel.c