Skip to content

Commit

Permalink
fix #5819
Browse files Browse the repository at this point in the history
  • Loading branch information
rt committed Oct 24, 2017
1 parent fdc7dc1 commit 927a573
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rts/Rendering/GL/FBO.cpp
Expand Up @@ -24,7 +24,7 @@ GLsizei FBO::maxSamples = -1;

static GLint GetCurrentBoundFBO()
{
GLint curFBO;
GLint curFBO = 0;
glGetIntegerv(GL_DRAW_FRAMEBUFFER_BINDING, &curFBO);
return curFBO;
}
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 927a573

Please sign in to comment.