From c84f99be75b1a9cad2e4eea774c6705d27a7e4f5 Mon Sep 17 00:00:00 2001 From: Eleni Maria Stea Date: Tue, 16 Oct 2018 16:30:14 +0300 Subject: [PATCH] added subtest that checks subimage and get functions use -subtest and one part of the texture will be read and written elsewhere. --- main.c | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/main.c b/main.c index a023307..497dc40 100644 --- a/main.c +++ b/main.c @@ -27,15 +27,32 @@ void print_compressed_formats(void); unsigned int tex, comp_tex; const char *texfile; +int subtest; int main(int argc, char **argv) { + int i; unsigned int glut_flags = GLUT_RGB | GLUT_DOUBLE; #ifdef USE_SRGB glut_flags |= GLUT_SRGB; #endif - texfile = argv[1]; + for(i=1; i