Browse Source

Fix type conversion errors in Mesh test shader code.

Reported by latest NVidia drivers (352.09), apparently worked until now.
Huh.
pull/107/head
Vladimír Vondruš 11 years ago
parent
commit
e84bcde790
  1. 4
      src/Magnum/Test/MeshGLTest.cpp

4
src/Magnum/Test/MeshGLTest.cpp

@ -553,7 +553,7 @@ void MeshGLTest::addVertexBufferDouble() {
MAGNUM_VERIFY_NO_ERROR();
const auto value = Checker(DoubleShader("double", "float", "vec4(value, 0.0, 0.0, 0.0)"),
const auto value = Checker(DoubleShader("double", "float", "float(value)"),
RenderbufferFormat::R16, mesh).get<UnsignedShort>(ColorFormat::Red, ColorType::UnsignedShort);
MAGNUM_VERIFY_NO_ERROR();
@ -1696,7 +1696,7 @@ void MeshGLTest::addVertexBufferInstancedDouble() {
MAGNUM_VERIFY_NO_ERROR();
const auto value = Checker(DoubleShader("double", "float", "vec4(value, 0.0, 0.0, 0.0)"),
const auto value = Checker(DoubleShader("double", "float", "float(value)"),
RenderbufferFormat::R16, mesh).get<UnsignedShort>(ColorFormat::Red, ColorType::UnsignedShort);
MAGNUM_VERIFY_NO_ERROR();

Loading…
Cancel
Save