* offline compile GLSL code and examine the resulting GLSL IR.
*/
+#include "main/mtypes.h"
#include "standalone.h"
static struct standalone_options options;
{ "dump-builder", no_argument, &options.dump_builder, 1 },
{ "link", no_argument, &options.do_link, 1 },
{ "just-log", no_argument, &options.just_log, 1 },
+ { "lower-precision", no_argument, &options.lower_precision, 1 },
{ "version", required_argument, NULL, 'v' },
{ NULL, 0, NULL, 0 }
};
usage_fail(argv[0]);
struct gl_shader_program *whole_program;
+ static struct gl_context local_ctx;
- whole_program = standalone_compile_shader(&options, argc - optind, &argv[optind]);
+ whole_program = standalone_compile_shader(&options, argc - optind,
+ &argv[optind], &local_ctx);
if (!whole_program)
usage_fail(argv[0]);