From 5fe2cf3279c279750d4821a9fa97bdbbe876e568 Mon Sep 17 00:00:00 2001 From: Tim Foley Date: Mon, 12 Jun 2017 10:48:36 -0700 Subject: GLSL: get GLSL limping in `render-test` The test case that is there right now is nominally a cross-compilation test, but for right now it uses the preprocessor to present completely different code for HLSL and GLSL compilation. This change is really just fleshing out the OpenGL side of `render-test` enough that it can produce images using OpenGL to enable further testing. --- tools/render-test/options.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tools/render-test/options.cpp') diff --git a/tools/render-test/options.cpp b/tools/render-test/options.cpp index 9cfbb81fb..260e6f46c 100644 --- a/tools/render-test/options.cpp +++ b/tools/render-test/options.cpp @@ -56,6 +56,10 @@ void parseOptions(int* argc, char** argv) { gOptions.mode = Mode::HLSL; } + else if( strcmp(arg, "-glsl") == 0 ) + { + gOptions.mode = Mode::GLSL; + } else if( strcmp(arg, "-slang") == 0 ) { gOptions.mode = Mode::Slang; -- cgit v1.2.3