[Piglit] [Patch] arb_internalformat_query2: GL_TEXTURE_BUFFER is also in core since 3.1
Sebastian Olender
sebastian.d.olender at intel.com
Mon Nov 21 12:43:10 UTC 2016
GL_TEXTURE_BUFFER requires GL_ARB_texture_buffer_object extension or context greater than 3.1
---
tests/spec/arb_internalformat_query2/common.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tests/spec/arb_internalformat_query2/common.c b/tests/spec/arb_internalformat_query2/common.c
index 3454ed0..a5686c0 100644
--- a/tests/spec/arb_internalformat_query2/common.c
+++ b/tests/spec/arb_internalformat_query2/common.c
@@ -706,7 +706,8 @@ check_query2_target_dependencies(const GLenum target)
break;
case GL_TEXTURE_BUFFER:
- if (!piglit_is_extension_supported("GL_ARB_texture_buffer_object"))
+ if (!piglit_is_extension_supported("GL_ARB_texture_buffer_object") &&
+ piglit_get_gl_version() < 31)
return false;
break;
--
2.7.4
More information about the Piglit
mailing list