Skip to content
Snippets Groups Projects
Commit 3a68789a authored by dg's avatar dg
Browse files

oups

git-svn-id: http://svn.net-core.org/repos/t-engine4@2593 51575b47-30f0-44d4-a5cc-537603b46e54
parent 9063d7eb
No related branches found
No related tags found
No related merge requests found
......@@ -37,7 +37,7 @@
#define PARTICLE_ETERNAL 999999
#define PARTICLES_PER_ARRAY 1000
#define MAX_THREADS 1
#define MAX_THREADS 7
static particle_thread threads[MAX_THREADS];
static int textures_ref = LUA_NOREF;
static int nb_threads = 0;
......@@ -91,6 +91,10 @@ static int particles_new(lua_State *L)
ps->density = density;
ps->alive = TRUE;
ps->l = NULL;
ps->texcoords = NULL;
ps->vertices = NULL;
ps->colors = NULL;
ps->particles = NULL;
ps->init = FALSE;
thread_add(ps);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment