From: Eleni Maria Stea Date: Tue, 16 Oct 2018 13:30:14 +0000 (+0300) Subject: added subtest that checks subimage and get functions X-Git-Url: http://git.mutantstargoat.com?p=test_compression;a=commitdiff_plain;h=c84f99be75b1a9cad2e4eea774c6705d27a7e4f5 added subtest that checks subimage and get functions use -subtest and one part of the texture will be read and written elsewhere. --- 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