diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-12-04 13:36:34 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-12-04 13:36:34 +0000 |
commit | ff596c478aa1ce1ecd87b1b0cf92b6c9b9562d87 (patch) | |
tree | a2ae6e06d567393b61e881959720baf8d9c9b7f5 | |
parent | Initial commit of the shadow map generator and shadows render interface (diff) | |
download | ilt-ff596c478aa1ce1ecd87b1b0cf92b6c9b9562d87.tar.bz2 ilt-ff596c478aa1ce1ecd87b1b0cf92b6c9b9562d87.tar.xz ilt-ff596c478aa1ce1ecd87b1b0cf92b6c9b9562d87.zip |
Disable GL_DEBUG_OUTPUT before dumping debug screenshot
Avoids potential performance error capture memory mapping a busy miptree BO
-rw-r--r-- | test/test-render.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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"); } |