From e84bcde790d20b05f9b5259fd169baf4a9c60fbe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sat, 23 May 2015 19:21:52 +0200 Subject: [PATCH] Fix type conversion errors in Mesh test shader code. Reported by latest NVidia drivers (352.09), apparently worked until now. Huh. --- src/Magnum/Test/MeshGLTest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Magnum/Test/MeshGLTest.cpp b/src/Magnum/Test/MeshGLTest.cpp index 3fd915c35..19db3e587 100644 --- a/src/Magnum/Test/MeshGLTest.cpp +++ b/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(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(ColorFormat::Red, ColorType::UnsignedShort); MAGNUM_VERIFY_NO_ERROR();