Skip to content

Commit

Permalink
Do not update textures when there are no textures
Browse files Browse the repository at this point in the history
Fixes yuq#49
  • Loading branch information
shadeslayer committed Apr 25, 2018
1 parent 2dc0e24 commit 709e3b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gallium/drivers/lima/lima_texture.c
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,8 @@ lima_update_textures(struct lima_context *ctx)

assert (lima_tex->num_samplers <= 16);

/* Nothing to do - we have no samplers */
if (!lima_tex->num_samplers)
/* Nothing to do - we have no samplers or textures */
if (!lima_tex->num_samplers || !lima_tex->num_textures)
return;

unsigned size = lima_tex_list_size + lima_tex->num_samplers * lima_tex_desc_size;
Expand Down

0 comments on commit 709e3b2

Please sign in to comment.