diff options
| author | Dan Goodliffe <dan@randomdan.homeip.net> | 2026-03-07 11:59:24 +0000 |
|---|---|---|
| committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2026-03-07 11:59:24 +0000 |
| commit | 712007d8fccae219154a69c83827413025ca08be (patch) | |
| tree | d4a983b4896d7d05870294b4f38de182fe55ec35 /gfx/gl/billboardPainter.cpp | |
| parent | Merge branch 'glalloc' (diff) | |
| download | ilt-712007d8fccae219154a69c83827413025ca08be.tar.bz2 ilt-712007d8fccae219154a69c83827413025ca08be.tar.xz ilt-712007d8fccae219154a69c83827413025ca08be.zip | |
Don't create and then replace shadow and billboard textures
Diffstat (limited to 'gfx/gl/billboardPainter.cpp')
| -rw-r--r-- | gfx/gl/billboardPainter.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/gfx/gl/billboardPainter.cpp b/gfx/gl/billboardPainter.cpp index 58fdce6..38c4d3e 100644 --- a/gfx/gl/billboardPainter.cpp +++ b/gfx/gl/billboardPainter.cpp @@ -38,11 +38,10 @@ BillboardPainter::getAngle() const return angle; } -glTextures<3> -BillboardPainter::createBillBoardTextures(GLsizei width, GLsizei height) +void +BillboardPainter::configureBillBoardTextures(glTextures<3> & textures, GLsizei width, GLsizei height) { glDebugScope _ {0}; - glTextures<3> textures; glPixelStorei(GL_UNPACK_ALIGNMENT, 1); const auto configuregdata = [width, height](const auto & texture, const GLint iformat, const GLenum format) { @@ -56,8 +55,6 @@ BillboardPainter::createBillBoardTextures(GLsizei width, GLsizei height) configuregdata(textures[0], GL_DEPTH_COMPONENT, GL_DEPTH_COMPONENT); configuregdata(textures[1], GL_RGB8_SNORM, GL_RGB); configuregdata(textures[2], GL_RGB5_A1, GL_RGBA); - - return textures; } void |
