diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-08-02 16:48:08 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-08-02 17:09:16 -0700 |
commit | eefc6d6efdd7d65aaad520d8615ce82a939ceec0 (patch) | |
tree | 8ec35295ad88215d1162391918c72df4fac80457 /tests/cubegeom_pre3.c | |
parent | 3d9690109e9c5f75202524012a628b5776d2a06a (diff) |
update cube browser tests to use reftests
Diffstat (limited to 'tests/cubegeom_pre3.c')
-rw-r--r-- | tests/cubegeom_pre3.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/tests/cubegeom_pre3.c b/tests/cubegeom_pre3.c index a1f811b6..4ba2a779 100644 --- a/tests/cubegeom_pre3.c +++ b/tests/cubegeom_pre3.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; @@ -335,8 +321,6 @@ int main(int argc, char *argv[]) SDL_GL_SwapBuffers(); - verify(); - #if !EMSCRIPTEN SDL_Delay(1500); #endif |