diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-08-05 14:00:16 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-08-05 14:00:16 -0700 |
commit | 1b7122c6aaa19cb6e2a62598dca8e0fd9e3cc7a7 (patch) | |
tree | 659d33c0fcfa4f6ae3afaae9808649e4021979b7 /tests/cubegeom_fog.c | |
parent | 6039aea9a13ea217301c2c19eca3e857dc2dace7 (diff) | |
parent | a0c6ab57cb11258df23dd670aebdc260d9e16da3 (diff) |
Merge branch 'incoming'
Diffstat (limited to 'tests/cubegeom_fog.c')
-rw-r--r-- | tests/cubegeom_fog.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/tests/cubegeom_fog.c b/tests/cubegeom_fog.c index 9c04a55d..cae6ca2d 100644 --- a/tests/cubegeom_fog.c +++ b/tests/cubegeom_fog.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; @@ -295,8 +281,6 @@ int main(int argc, char *argv[]) SDL_GL_SwapBuffers(); - verify(); - #if !EMSCRIPTEN SDL_Delay(1500); #endif |