Browse Source

Properly check extensions in BufferTextureGLTest.

pull/107/head
Vladimír Vondruš 11 years ago
parent
commit
d2b1685a71
  1. 2
      src/Magnum/Test/BufferTextureGLTest.cpp

2
src/Magnum/Test/BufferTextureGLTest.cpp

@ -124,6 +124,8 @@ void BufferTextureGLTest::setBuffer() {
void BufferTextureGLTest::setBufferOffset() { void BufferTextureGLTest::setBufferOffset() {
if(!Context::current()->isExtensionSupported<Extensions::GL::ARB::texture_buffer_object>()) if(!Context::current()->isExtensionSupported<Extensions::GL::ARB::texture_buffer_object>())
CORRADE_SKIP(Extensions::GL::ARB::texture_buffer_object::string() + std::string(" is not supported.")); CORRADE_SKIP(Extensions::GL::ARB::texture_buffer_object::string() + std::string(" is not supported."));
if(!Context::current()->isExtensionSupported<Extensions::GL::ARB::texture_buffer_range>())
CORRADE_SKIP(Extensions::GL::ARB::texture_buffer_range::string() + std::string(" is not supported."));
/* Check that we have correct offset alignment */ /* Check that we have correct offset alignment */
CORRADE_INTERNAL_ASSERT(256 % BufferTexture::offsetAlignment() == 0); CORRADE_INTERNAL_ASSERT(256 % BufferTexture::offsetAlignment() == 0);

Loading…
Cancel
Save