summaryrefslogtreecommitdiff
path: root/test/test-render.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2022-12-04 13:36:34 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2022-12-04 13:36:34 +0000
commitff596c478aa1ce1ecd87b1b0cf92b6c9b9562d87 (patch)
treea2ae6e06d567393b61e881959720baf8d9c9b7f5 /test/test-render.cpp
parentInitial commit of the shadow map generator and shadows render interface (diff)
downloadilt-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
Diffstat (limited to 'test/test-render.cpp')
-rw-r--r--test/test-render.cpp2
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");
}