Added few more stubs so that control reaches to DestroyDevice().
[mesa.git] / src / gallium / tests / graw / fs-frontface.c
index 32a13cb9e2b93494f87d366279def04f490726b7..956c7fee3a0615cbdee5d0e0eefc2ffb1d245fa6 100644 (file)
@@ -5,6 +5,8 @@
 
 #include "graw_util.h"
 
+#include "util/macros.h"
+
 
 static int width = 300;
 static int height = 300;
@@ -65,7 +67,7 @@ static struct vertex vertices[] =
    },
 };
 
-#define NUM_VERTS (sizeof(vertices) / sizeof(vertices[0]))
+#define NUM_VERTS ARRAY_SIZE(vertices)
 
 
 
@@ -157,6 +159,7 @@ draw(void)
 
    info.ctx->clear(info.ctx,
               PIPE_CLEAR_COLOR | PIPE_CLEAR_DEPTHSTENCIL,
+              NULL,
               &clear_color, 1.0, 0);
    util_draw_arrays(info.ctx, PIPE_PRIM_QUADS, 0, NUM_VERTS);
    info.ctx->flush(info.ctx, NULL, 0);