aboutsummaryrefslogtreecommitdiff
path: root/tests/cubegeom_pre2_vao2.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cubegeom_pre2_vao2.c')
-rw-r--r--tests/cubegeom_pre2_vao2.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/tests/cubegeom_pre2_vao2.c b/tests/cubegeom_pre2_vao2.c
index e3ab4d62..3784006c 100644
--- a/tests/cubegeom_pre2_vao2.c
+++ b/tests/cubegeom_pre2_vao2.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;
@@ -368,8 +354,6 @@ int main(int argc, char *argv[])
SDL_GL_SwapBuffers();
- verify();
-
#if !EMSCRIPTEN
SDL_Delay(1500);
#endif