aboutsummaryrefslogtreecommitdiff
path: root/tests/cubegeom_normal_dap.c
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-08-02 16:48:08 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-08-02 17:09:16 -0700
commiteefc6d6efdd7d65aaad520d8615ce82a939ceec0 (patch)
tree8ec35295ad88215d1162391918c72df4fac80457 /tests/cubegeom_normal_dap.c
parent3d9690109e9c5f75202524012a628b5776d2a06a (diff)
update cube browser tests to use reftests
Diffstat (limited to 'tests/cubegeom_normal_dap.c')
-rw-r--r--tests/cubegeom_normal_dap.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/tests/cubegeom_normal_dap.c b/tests/cubegeom_normal_dap.c
index f811c586..752911a8 100644
--- a/tests/cubegeom_normal_dap.c
+++ b/tests/cubegeom_normal_dap.c
@@ -29,20 +29,6 @@ REDISTRIBUTION OF THIS SOFTWARE.
#include <string.h>
#include <assert.h>
-void verify() {
- int width = 640, height = 480;
- unsigned char *data = (unsigned char*)malloc(width*height*4);
- glReadPixels(0, 0, width, height, GL_RGBA, GL_UNSIGNED_BYTE, data);
- int sum = 0;
- for (int x = 0; x < width*height*4; x++) {
- if (x % 4 != 3) sum += x * data[x];
- }
-#if EMSCRIPTEN
- int result = sum;
- REPORT_RESULT();
-#endif
-}
-
int main(int argc, char *argv[])
{
SDL_Surface *screen;
@@ -279,8 +265,7 @@ int main(int argc, char *argv[])
SDL_GL_SwapBuffers();
- verify();
-
+
#if !EMSCRIPTEN
SDL_Delay(1500);
#endif