mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 15:48:36 +02:00
vdpau: Declare texture object as immutable using helper function.
Cc: mesa-stable Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/10618 Signed-off-by: Chris Rankin <rankincj@gmail.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27681>
This commit is contained in:
parent
d0595e4805
commit
e1e84b0721
1 changed files with 2 additions and 1 deletions
|
|
@ -39,6 +39,7 @@
|
|||
#include "glformats.h"
|
||||
#include "texobj.h"
|
||||
#include "teximage.h"
|
||||
#include "textureview.h"
|
||||
#include "api_exec_decl.h"
|
||||
|
||||
#include "state_tracker/st_cb_texture.h"
|
||||
|
|
@ -179,7 +180,7 @@ register_surface(struct gl_context *ctx, GLboolean isOutput,
|
|||
}
|
||||
|
||||
/* This will disallow respecifying the storage. */
|
||||
tex->Immutable = GL_TRUE;
|
||||
_mesa_set_texture_view_state(ctx, tex, target, 1);
|
||||
_mesa_unlock_texture(ctx, tex);
|
||||
|
||||
_mesa_reference_texobj(&surf->textures[i], tex);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue