diff options
| author | Dan Goodliffe <dan.goodliffe@octal.co.uk> | 2026-03-02 13:17:28 +0000 |
|---|---|---|
| committer | Dan Goodliffe <dan.goodliffe@octal.co.uk> | 2026-03-02 13:17:28 +0000 |
| commit | 64ede41ebaade64ad6705f7f55ca4a778a156481 (patch) | |
| tree | 6d2fbc64cd28d272fe3f5bbf79ddd41ecc5e2626 /test/testRenderOutput.cpp | |
| parent | Refactor glArrays to better expose underlying types (diff) | |
| download | ilt-64ede41ebaade64ad6705f7f55ca4a778a156481.tar.bz2 ilt-64ede41ebaade64ad6705f7f55ca4a778a156481.tar.xz ilt-64ede41ebaade64ad6705f7f55ca4a778a156481.zip | |
Fixes previously hard coded billboard texture size.
Diffstat (limited to 'test/testRenderOutput.cpp')
| -rw-r--r-- | test/testRenderOutput.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/testRenderOutput.cpp b/test/testRenderOutput.cpp index 2c74ceb..ae2e60d 100644 --- a/test/testRenderOutput.cpp +++ b/test/testRenderOutput.cpp @@ -6,8 +6,8 @@ TestRenderOutput::TestRenderOutput(TextureAbsCoord outputSize) : size {outputSiz { glBindFramebuffer(GL_FRAMEBUFFER, output); const auto configuregdata - = [this](const GLuint data, const GLint format, const GLenum type, const GLenum attachment) { - glBindTexture(GL_TEXTURE_2D, data); + = [this](const auto & data, const GLint format, const GLenum type, const GLenum attachment) { + data.bind(); glTexImage2D(GL_TEXTURE_2D, 0, format, size.x, size.y, 0, GL_RGBA, type, nullptr); glTexParameter(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST); glTexParameter(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST); |
