OSDN Git Service

mesa: use same is_color_attachment trick to discern error cases
authorIlia Mirkin <imirkin@alum.mit.edu>
Tue, 24 Jan 2017 05:26:29 +0000 (00:26 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Wed, 1 Feb 2017 03:12:57 +0000 (22:12 -0500)
commit62b8f494fac377c88bf2bb0eff67cdf4db37da42
treedcd1109750c2db9945c8ad0f6605266bcb3769be
parent92128590bc78bcbbfb19144c7004b31d6405bbcb
mesa: use same is_color_attachment trick to discern error cases

All the other calls to retrieve the attachment have been covered except
this one - return the proper error for attachment points that are valid
enums but out of bound for the driver.

Fixes GL45-CTS.geometry_shader.layered_fbo.fb_texture_invalid_attachment

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/mesa/main/fbobject.c