diff options
author | Paul Berry <stereotype441@gmail.com> | 2013-03-29 14:58:33 -0700 |
---|---|---|
committer | Paul Berry <stereotype441@gmail.com> | 2013-04-02 08:57:17 -0700 |
commit | 609d0c1a953ab3f87aa6186ffaeeb16fe18e4b4e (patch) | |
tree | b69986ddbba647662c9daf3b12d52ecd0534eeb4 | |
parent | 7f4f88584455a6dfb45aac274bf069e58fc97579 (diff) |
Fix build of shader_runner for GLES.
Commit f184de94 (shader_runner: Add lod_bias option to texparameter)
added support for testing the GL_TEXTURE_LOD_BIAS texture parameter to
shader_runner. However, this feature is only available in desktop GL.
This caused compile errors with GLES.
This patch ifdefs the feature out when building the GLES version of
shader_runner.
Reviewed-by: Matt Turner <mattst88@gmail.com>
-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 002cf720..a2908a57 100644 --- a/tests/shaders/shader_runner.c +++ b/tests/shaders/shader_runner.c @@ -1578,10 +1578,15 @@ handle_texparameter(const char *line) line += strlen("mag "); strings = mag_filter_modes; } else if (string_match("lod_bias ", line)) { +#ifdef PIGLIT_USE_OPENGL line += strlen("lod_bias "); glTexParameterf(target, GL_TEXTURE_LOD_BIAS, strtod(line, NULL)); return; +#else + printf("lod_bias feature is only available in desktop GL\n"); + piglit_report_result(PIGLIT_SKIP); +#endif } else { fprintf(stderr, "unknown texture parameter in `%s'\n", line); piglit_report_result(PIGLIT_FAIL); |