renderer/common/sprite_batch: don't pass NULL to r_uniform_sampler
This commit is contained in:
parent
7c82cbba9b
commit
321ba481d9
1 changed files with 3 additions and 1 deletions
|
@ -158,7 +158,9 @@ void r_flush_sprites(void) {
|
|||
r_uniform_sampler("tex", _r_sprite_batch.primary_texture);
|
||||
|
||||
for(uint i = 0; i < ARRAY_SIZE(tex_aux_names); ++i) {
|
||||
r_uniform_sampler(tex_aux_names[i], _r_sprite_batch.aux_textures[i]);
|
||||
if(_r_sprite_batch.aux_textures[i]) {
|
||||
r_uniform_sampler(tex_aux_names[i], _r_sprite_batch.aux_textures[i]);
|
||||
}
|
||||
}
|
||||
|
||||
r_framebuffer(_r_sprite_batch.framebuffer);
|
||||
|
|
Loading…
Reference in a new issue