Skip to content
Commit 5694c201 authored by Pierre-Eric Pelloux-Prayer's avatar Pierre-Eric Pelloux-Prayer Committed by Dylan Baker
Browse files

mesa: fix invalid target error handling for teximage



This commit moves the target check before using _mesa_get_current_tex_object
to fix a "Mesa implementation error: bad target in _mesa_get_current_tex_object()"
error.

Fixes: 9dd1f7ce ("mesa: pass gl_texture_object as arg to not depend on state")
Reviewed-by: default avatarMarek Olšák <marek.olsak@amd.com>
(cherry picked from commit 16233797)
parent 9a929cfe
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment