diff options
author | Matt Turner <mattst88@gmail.com> | 2013-03-18 14:44:48 -0700 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2013-03-29 10:14:03 -0700 |
commit | f184de94ddaf514ce6fa0ca2a94913f98d78d2de (patch) | |
tree | e0548968c4f2e75193728ef838d9195fd0c88a97 /tests/shaders/shader_runner.c | |
parent | 666a04f8bbcff0dff89c80323d13649e70d3faca (diff) |
shader_runner: Add lod_bias option to texparameter.
Diffstat (limited to 'tests/shaders/shader_runner.c')
-rw-r--r-- | tests/shaders/shader_runner.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/shaders/shader_runner.c b/tests/shaders/shader_runner.c index 7f3ddbbfa..002cf720d 100644 --- a/tests/shaders/shader_runner.c +++ b/tests/shaders/shader_runner.c @@ -1577,6 +1577,11 @@ handle_texparameter(const char *line) parameter_name = "mag"; line += strlen("mag "); strings = mag_filter_modes; + } else if (string_match("lod_bias ", line)) { + line += strlen("lod_bias "); + glTexParameterf(target, GL_TEXTURE_LOD_BIAS, + strtod(line, NULL)); + return; } else { fprintf(stderr, "unknown texture parameter in `%s'\n", line); piglit_report_result(PIGLIT_FAIL); |