Browse Source

GL: Intel Windows drivers 26 are less shitty w/ double attributes.

pull/388/head
Vladimír Vondruš 7 years ago
parent
commit
f2ba5602a4
  1. 16
      src/Magnum/GL/Test/MeshGLTest.cpp

16
src/Magnum/GL/Test/MeshGLTest.cpp

@ -1071,11 +1071,9 @@ void MeshGLTest::addVertexBufferMatrixNxNd() {
MAGNUM_VERIFY_NO_GL_ERROR(); MAGNUM_VERIFY_NO_GL_ERROR();
{ {
auto drivers = Context::DetectedDriver::Amd|Context::DetectedDriver::NVidia; /* Used to be a problem on Intel Windows drivers 23, not a problem on
#ifdef CORRADE_TARGET_WINDOWS 26 anymore */
drivers |= Context::DetectedDriver::IntelWindows; CORRADE_EXPECT_FAIL_IF(Context::current().detectedDriver() & (Context::DetectedDriver::Amd|Context::DetectedDriver::NVidia), "Somehow only first two values are extracted on AMD and NVidia drivers.");
#endif
CORRADE_EXPECT_FAIL_IF(Context::current().detectedDriver() & drivers, "Somehow only first two values are extracted on AMD, NVidia and Intel Windows drivers.");
CORRADE_COMPARE(value.xyz(), Math::Vector3<UnsignedShort>(315, 65201, 2576)); CORRADE_COMPARE(value.xyz(), Math::Vector3<UnsignedShort>(315, 65201, 2576));
} }
@ -1173,11 +1171,9 @@ void MeshGLTest::addVertexBufferMatrixMxNd() {
MAGNUM_VERIFY_NO_GL_ERROR(); MAGNUM_VERIFY_NO_GL_ERROR();
{ {
auto drivers = Context::DetectedDriver::Amd|Context::DetectedDriver::NVidia; /* Used to be a problem on Intel Windows drivers 23, not a problem on
#ifdef CORRADE_TARGET_WINDOWS 26 anymore */
drivers |= Context::DetectedDriver::IntelWindows; CORRADE_EXPECT_FAIL_IF(Context::current().detectedDriver() & (Context::DetectedDriver::Amd|Context::DetectedDriver::NVidia), "Somehow only first two values are extracted on AMD and NVidia drivers.");
#endif
CORRADE_EXPECT_FAIL_IF(Context::current().detectedDriver() & drivers, "Somehow only first two values are extracted on AMD, NVidia and Intel Windows drivers.");
CORRADE_COMPARE(value.xyz(), Math::Vector3<UnsignedShort>(315, 65201, 2576)); CORRADE_COMPARE(value.xyz(), Math::Vector3<UnsignedShort>(315, 65201, 2576));
} }

Loading…
Cancel
Save