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_pre2_vao.c | |
parent | 3d9690109e9c5f75202524012a628b5776d2a06a (diff) |
update cube browser tests to use reftests
Diffstat (limited to 'tests/cubegeom_pre2_vao.c')
-rw-r--r-- | tests/cubegeom_pre2_vao.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/tests/cubegeom_pre2_vao.c b/tests/cubegeom_pre2_vao.c index 98bedd54..cba262ff 100644 --- a/tests/cubegeom_pre2_vao.c +++ b/tests/cubegeom_pre2_vao.c @@ -33,20 +33,6 @@ PFNGLGENVERTEXARRAYSPROC glGenVertexArrays_ = NULL; PFNGLBINDVERTEXARRAYPROC glBindVertexArray_ = NULL; PFNGLDELETEVERTEXARRAYSPROC glDeleteVertexArrays_ = NULL; -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; @@ -367,8 +353,6 @@ int main(int argc, char *argv[]) SDL_GL_SwapBuffers(); - verify(); - #if !EMSCRIPTEN SDL_Delay(1500); #endif |