Commit 2d41eb31 authored by Dave Airlie's avatar Dave Airlie

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: default avatarIan Romanick <>
Reviewed-by: Kenneth Graunke's avatarKenneth Graunke <>
Signed-off-by: default avatarDave Airlie <>
parent bbc6a275
......@@ -196,7 +196,7 @@ get_label_pointer(struct gl_context *ctx, GLenum identifier, GLuint name,
struct gl_texture_object *texObj = _mesa_lookup_texture(ctx, name);
if (texObj)
if (texObj && texObj->Target)
labelPtr = &texObj->Label;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment