fixed state leak in 3dengfx particle system when using point sprites
authorJohn Tsiombikas <nuclear@member.fsf.org>
Sun, 18 Dec 2022 23:29:12 +0000 (01:29 +0200)
committerJohn Tsiombikas <nuclear@member.fsf.org>
Sun, 18 Dec 2022 23:29:12 +0000 (01:29 +0200)
src/3dengfx/src/3dengfx/psys.cpp

index 2744ad9..c69440e 100644 (file)
@@ -395,8 +395,8 @@ void ParticleSystem::draw() const {
 
                        if(psys_params.billboard_tex) {
                                if(use_psprites) {
-                                       set_point_sprites(true);
-                                       set_point_sprite_coords(0, true);
+                                       set_point_sprites(false);
+                                       set_point_sprite_coords(0, false);
                                }
                                set_texture_addressing(0, TEXADDR_WRAP, TEXADDR_WRAP);
                                disable_texture_unit(0);