summaryrefslogtreecommitdiff
path: root/src/demos/fire.c
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2010-01-08 08:21:12 -0700
committerBrian Paul <brianp@vmware.com>2010-01-08 08:21:12 -0700
commit98df19e760820ee4b3f58eff553f5c53285f0d57 (patch)
tree19833e1c704bc9edb6601521170e0c85e5442c39 /src/demos/fire.c
parentcae849e5a59e5a0c269e3c916cf1b7c33e16957a (diff)
parent085886df7095d9852d1f84f83517ef3f1f10f0a4 (diff)
Merge branch 'mesa_7_7_branch'
Conflicts: src/mesa/drivers/dri/i965/brw_wm_emit.c
Diffstat (limited to 'src/demos/fire.c')
-rw-r--r--src/demos/fire.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/demos/fire.c b/src/demos/fire.c
index 3db45418..9c351e80 100644
--- a/src/demos/fire.c
+++ b/src/demos/fire.c
@@ -6,6 +6,7 @@
* Humanware s.r.l.
*/
+#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
@@ -758,6 +759,7 @@ main(int ac, char **av)
glFogfv(GL_FOG_COLOR, fogcolor);
glFogf(GL_FOG_DENSITY, 0.1);
+ assert(np > 0);
p = (part *) malloc(sizeof(part) * np);
for (i = 0; i < np; i++)