summaryrefslogtreecommitdiff
path: root/test/testRenderOutput.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2023-01-10 17:57:20 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2023-01-10 17:57:20 +0000
commit719c98711d4d816346cdc8f4bc95fc315c2eddc0 (patch)
treeede07bfbe3eb2aab8556e415047ffe9a95150410 /test/testRenderOutput.cpp
parentFix up all the static analyzer warnings (diff)
downloadilt-719c98711d4d816346cdc8f4bc95fc315c2eddc0.tar.bz2
ilt-719c98711d4d816346cdc8f4bc95fc315c2eddc0.tar.xz
ilt-719c98711d4d816346cdc8f4bc95fc315c2eddc0.zip
Support creating test render output framebuffers of different sizes
Includes a templated subclass to allow size to be specified in a test fixture
Diffstat (limited to 'test/testRenderOutput.cpp')
-rw-r--r--test/testRenderOutput.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/testRenderOutput.cpp b/test/testRenderOutput.cpp
index 2a94a1b..464b0b3 100644
--- a/test/testRenderOutput.cpp
+++ b/test/testRenderOutput.cpp
@@ -1,7 +1,7 @@
#include "testRenderOutput.h"
#include <stdexcept>
-TestRenderOutput::TestRenderOutput() : size {640, 480}
+TestRenderOutput::TestRenderOutput(glm::ivec2 s) : size {s}
{
glBindFramebuffer(GL_FRAMEBUFFER, output);
const auto configuregdata