From 8b2323646d18ff651b524442ae795f58d2d99c91 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Mika=20Isoj=C3=A4rvi?= Date: Thu, 28 Jan 2016 11:13:58 -0800 Subject: [PATCH] Check texture buffer support in texture format tests. Bug: 25928366 Change-Id: Ica63b164a9f8d599c60e0d602710367e555633a8 --- modules/gles31/functional/es31fTextureFormatTests.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/modules/gles31/functional/es31fTextureFormatTests.cpp b/modules/gles31/functional/es31fTextureFormatTests.cpp index a964047..93c9bab 100644 --- a/modules/gles31/functional/es31fTextureFormatTests.cpp +++ b/modules/gles31/functional/es31fTextureFormatTests.cpp @@ -288,7 +288,14 @@ void TextureBufferFormatCase::init (void) tcu::Vec4 colorA (spec.valueMin.x(), spec.valueMax.y(), spec.valueMin.z(), spec.valueMax.w()); tcu::Vec4 colorB (spec.valueMax.x(), spec.valueMin.y(), spec.valueMax.z(), spec.valueMin.w()); + if (!m_context.getContextInfo().isExtensionSupported("GL_OES_texture_buffer") + && !m_context.getContextInfo().isExtensionSupported("GL_EXT_texture_buffer")) + { + TCU_THROW(NotSupportedError, "Texture buffers not supported"); + } + m_maxTextureBufferSize = m_context.getContextInfo().getInt(GL_MAX_TEXTURE_BUFFER_SIZE); + if (m_maxTextureBufferSize <= 0) TCU_THROW(NotSupportedError, "GL_MAX_TEXTURE_BUFFER_SIZE > 0 required"); -- 2.7.4