From 5cddf7b6b784442f56fff2485d110515c789d6f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Tue, 19 Oct 2021 16:48:31 +0200 Subject: [PATCH] GL: test for multidraw assertions using the low-level API. No need to go through the extraneous MeshView API. --- src/Magnum/GL/Test/MeshGLTest.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Magnum/GL/Test/MeshGLTest.cpp b/src/Magnum/GL/Test/MeshGLTest.cpp index 818d525c5..73f01cc9e 100644 --- a/src/Magnum/GL/Test/MeshGLTest.cpp +++ b/src/Magnum/GL/Test/MeshGLTest.cpp @@ -4139,13 +4139,13 @@ void MeshGLTest::multiDrawIndexedViewsBaseVertexNoExtensionAvailable() { Mesh mesh; mesh.setIndexBuffer(Buffer{Buffer::TargetHint::ElementArray, {2, 1, 0}}, 0, MeshIndexType::UnsignedInt); - MeshView view{mesh}; - view.setCount(3) - .setBaseVertex(1); + UnsignedInt counts[]{3}; + UnsignedInt vertexOffsets[]{1}; + UnsignedInt indexOffsets[]{0}; std::ostringstream out; Error redirectError{&out}; - MultiDrawShader{}.draw({view, view}); + MultiDrawShader{}.draw(mesh, counts, vertexOffsets, indexOffsets); #if !(defined(MAGNUM_TARGET_WEBGL) && defined(MAGNUM_TARGET_GLES2)) CORRADE_COMPARE(out.str(), "GL::AbstractShaderProgram::draw(): no extension available for indexed mesh multi-draw with base vertex specification\n"); #else