Signed-off-by: Chris Forbes <[email protected]>
---
 tests/shaders/shader_runner.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/tests/shaders/shader_runner.c b/tests/shaders/shader_runner.c
index ca571ec..fbc1964 100644
--- a/tests/shaders/shader_runner.c
+++ b/tests/shaders/shader_runner.c
@@ -1585,6 +1585,11 @@ handle_texparameter(const char *line)
                printf("lod_bias feature is only available in desktop GL\n");
                piglit_report_result(PIGLIT_SKIP);
 #endif
+       } else if (string_match("max_level ", line)) {
+               line += strlen("max_level ");
+               glTexParameteri(target, GL_TEXTURE_MAX_LEVEL,
+                               strtol(line, NULL, 10));
+               return;
        } else if (string_match("base_level ", line)) {
                line += strlen("base_level ");
                glTexParameteri(target, GL_TEXTURE_BASE_LEVEL,
-- 
1.8.4

_______________________________________________
Piglit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/piglit

Reply via email to