mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 00:00:11 +01:00
gallium: mark texture object data dirty in do_copy_texsubimage()
This commit is contained in:
parent
3ccbaa977f
commit
1d45787d4a
1 changed files with 4 additions and 0 deletions
|
|
@ -1091,6 +1091,7 @@ do_copy_texsubimage(GLcontext *ctx,
|
|||
struct gl_texture_image *texImage =
|
||||
_mesa_select_tex_image(ctx, texObj, target, level);
|
||||
struct st_texture_image *stImage = st_texture_image(texImage);
|
||||
struct st_texture_object *stObj = st_texture_object(texObj);
|
||||
GLenum baseFormat = texImage->InternalFormat;
|
||||
struct gl_framebuffer *fb = ctx->ReadBuffer;
|
||||
struct st_renderbuffer *strb;
|
||||
|
|
@ -1177,6 +1178,9 @@ do_copy_texsubimage(GLcontext *ctx,
|
|||
|
||||
pipe_surface_reference(&dest_surface, NULL);
|
||||
|
||||
/* flag data as dirty */
|
||||
stObj->dirtyData = GL_TRUE;
|
||||
|
||||
if (level == texObj->BaseLevel && texObj->GenerateMipmap) {
|
||||
ctx->Driver.GenerateMipmap(ctx, target, texObj);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue