This make sure that we won't call gl.bufferStorage if this isn't possible.
Affects:
KHR-GL43.map_buffer_alignment.functional
Components: OpenGL
Signed-off-by: Corentin Noël <corentin.noel@collabora.com>
Change-Id: Icdcfeba5144543ee3d8c762618ff1b7d8752f502
#include "gl4cMapBufferAlignmentTests.hpp"
+#include "gluContextInfo.hpp"
#include "gluDefs.hpp"
#include "glwEnums.hpp"
#include "glwFunctions.hpp"
/* Nothing to be done */
}
+ void init();
/** Execute test
*
* @return tcu::TestNode::STOP
GLenum m_max_size;
};
+void Functional::init(void)
+{
+ if (!m_context.getContextInfo().isExtensionSupported("GL_ARB_buffer_storage"))
+ {
+ TCU_THROW(NotSupportedError, "GL_ARB_buffer_storage not supported");
+ }
+}
+
/** Execute test
*
* @return tcu::TestNode::STOP