[Mesa-dev] [PATCH 6/8] mesa: fix using texture id 0 with VDPAURegisterSurfaceNV()
Christian König
deathsimple at vodafone.de
Wed Jun 21 09:35:59 UTC 2017
Am 21.06.2017 um 11:05 schrieb Samuel Pitoiset:
> Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Reviewed-by: Christian König <christian.koenig at amd.com>
> ---
> src/mesa/main/vdpau.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/src/mesa/main/vdpau.c b/src/mesa/main/vdpau.c
> index 44be3a37443..051071beb5f 100644
> --- a/src/mesa/main/vdpau.c
> +++ b/src/mesa/main/vdpau.c
> @@ -145,11 +145,11 @@ register_surface(struct gl_context *ctx, GLboolean isOutput,
> surf->output = isOutput;
> for (i = 0; i < numTextureNames; ++i) {
> struct gl_texture_object *tex;
> - tex = _mesa_lookup_texture(ctx, textureNames[i]);
> +
> + tex = _mesa_lookup_texture_err(ctx, textureNames[i],
> + "VDPAURegisterSurfaceNV");
> if (tex == NULL) {
> free(surf);
> - _mesa_error(ctx, GL_INVALID_OPERATION,
> - "VDPAURegisterSurfaceNV(texture ID not found)");
> return (GLintptr)NULL;
> }
>
More information about the mesa-dev
mailing list