fixed state leak in 3dengfx particle system when using point sprites
[summerhack] / src / 3dengfx / src / 3dengfx / psys.cpp
index b32cb69..c69440e 100644 (file)
@@ -159,7 +159,7 @@ ParticleSysParams::ParticleSysParams() {
 
 
 ParticleSystem::ParticleSystem(const char *fname) {
-       timeslice = 1.0 / 50.0;
+       timeslice = 1.0 / 30.0;
        SysCaps sys_caps = get_system_capabilities();
        /* XXX: My Radeon Mobility 9000 supports point sprites but does not say so
         * in the extension string, it only has point params there. So I changed this
@@ -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);