From 927a57325793d038b823948e4dc5d6cae5617e08 Mon Sep 17 00:00:00 2001 From: rt Date: Wed, 25 Oct 2017 00:40:51 +0200 Subject: [PATCH] fix #5819 --- rts/Rendering/GL/FBO.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rts/Rendering/GL/FBO.cpp b/rts/Rendering/GL/FBO.cpp index 9683ec5f6b8..392eecff25e 100644 --- a/rts/Rendering/GL/FBO.cpp +++ b/rts/Rendering/GL/FBO.cpp @@ -24,7 +24,7 @@ GLsizei FBO::maxSamples = -1; static GLint GetCurrentBoundFBO() { - GLint curFBO; + GLint curFBO = 0; glGetIntegerv(GL_DRAW_FRAMEBUFFER_BINDING, &curFBO); return curFBO; } @@ -349,6 +349,8 @@ GLenum FBO::GetStatus() void FBO::AttachTexture(const GLuint texId, const GLenum texTarget, const GLenum attachment, const int mipLevel, const int zSlice ) { assert(GetCurrentBoundFBO() == fboId); + + // TODO: glFramebufferTextureLayer(GL_FRAMEBUFFER, attachment, texId, mipLevel, zSlice); if (texTarget == GL_TEXTURE_1D) { glFramebufferTexture1D(GL_FRAMEBUFFER, attachment, GL_TEXTURE_1D, texId, mipLevel); } else if (texTarget == GL_TEXTURE_3D) {