From ff596c478aa1ce1ecd87b1b0cf92b6c9b9562d87 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 4 Dec 2022 13:36:34 +0000 Subject: Disable GL_DEBUG_OUTPUT before dumping debug screenshot Avoids potential performance error capture memory mapping a busy miptree BO --- test/test-render.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/test-render.cpp') diff --git a/test/test-render.cpp b/test/test-render.cpp index 17bc5fc..f6185b4 100644 --- a/test/test-render.cpp +++ b/test/test-render.cpp @@ -104,6 +104,7 @@ BOOST_AUTO_TEST_CASE(basic) ss.camera.forward = glm::normalize(glm::vec3 {1, 1, -0.5F}); TestScene scene; ss.render(scene); + glDisable(GL_DEBUG_OUTPUT); Texture::save(outImage, size, "/tmp/basic.tga"); } @@ -132,6 +133,7 @@ BOOST_AUTO_TEST_CASE(pointlight) }; PointLightScene scene; ss.render(scene); + glDisable(GL_DEBUG_OUTPUT); Texture::save(outImage, size, "/tmp/pointlight.tga"); } -- cgit v1.2.3