Browse Source

GL: Avoid XPASS on Mesa with CubeMapTexture::invalidateSubData().

Check that given extension is actually enabled before testing for XFAIL.
pull/255/head
Vladimír Vondruš 8 years ago
parent
commit
c750771034
  1. 2
      src/Magnum/GL/Test/CubeMapTextureGLTest.cpp

2
src/Magnum/GL/Test/CubeMapTextureGLTest.cpp

@ -1447,7 +1447,7 @@ void CubeMapTextureGLTest::invalidateSubImage() {
only single layer instead of 6, so the above invalidation call
fails. Relevant source code (scroll up to see imageDepth = 1):
https://github.com/mesa3d/mesa/blob/051fddb4a9e6abb6f2cf9c892e34c8739983c794/src/mesa/main/texobj.c#L2293 */
CORRADE_EXPECT_FAIL_IF((Context::current().detectedDriver() & Context::DetectedDriver::Mesa),
CORRADE_EXPECT_FAIL_IF((Context::current().detectedDriver() & Context::DetectedDriver::Mesa) && Context::current().isExtensionSupported<Extensions::ARB::invalidate_subdata>(),
"Broken on Mesa.");
#endif

Loading…
Cancel
Save