Restore checking for framebuffer completion
This commit is contained in:
parent
4132177132
commit
0f318ab1ba
@ -279,8 +279,8 @@ FrameBuffer::FrameBuffer(const std::vector<GLuint> &RTTs, size_t w, size_t h,
|
||||
for (unsigned i = 0; i < RTTs.size(); i++)
|
||||
glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0 + i, GL_TEXTURE_2D, RTTs[i], 0);
|
||||
}
|
||||
//~ GLenum result = glCheckFramebufferStatus(GL_FRAMEBUFFER);
|
||||
//~ assert(result == GL_FRAMEBUFFER_COMPLETE_EXT);
|
||||
GLenum result = glCheckFramebufferStatus(GL_FRAMEBUFFER);
|
||||
assert(result == GL_FRAMEBUFFER_COMPLETE_EXT);
|
||||
}
|
||||
|
||||
FrameBuffer::FrameBuffer(const std::vector<GLuint> &RTTs, GLuint DS, size_t w,
|
||||
@ -304,8 +304,8 @@ FrameBuffer::FrameBuffer(const std::vector<GLuint> &RTTs, GLuint DS, size_t w,
|
||||
glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0 + i, GL_TEXTURE_2D, RTTs[i], 0);
|
||||
glFramebufferTexture2D(GL_FRAMEBUFFER, GL_DEPTH_STENCIL_ATTACHMENT, GL_TEXTURE_2D, DS, 0);
|
||||
}
|
||||
//~ GLenum result = glCheckFramebufferStatus(GL_FRAMEBUFFER);
|
||||
//~ assert(result == GL_FRAMEBUFFER_COMPLETE_EXT);
|
||||
GLenum result = glCheckFramebufferStatus(GL_FRAMEBUFFER);
|
||||
assert(result == GL_FRAMEBUFFER_COMPLETE_EXT);
|
||||
if (layered)
|
||||
glGenFramebuffers(1, &fbolayer);
|
||||
}
|
||||
|
@ -283,8 +283,8 @@ void Skybox::generateSpecularCubemap()
|
||||
glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0,
|
||||
GL_TEXTURE_CUBE_MAP_POSITIVE_X + face,
|
||||
m_specular_probe, level);
|
||||
//~ GLuint status = glCheckFramebufferStatus(GL_FRAMEBUFFER);
|
||||
//~ assert(status == GL_FRAMEBUFFER_COMPLETE);
|
||||
GLuint status = glCheckFramebufferStatus(GL_FRAMEBUFFER);
|
||||
assert(status == GL_FRAMEBUFFER_COMPLETE);
|
||||
|
||||
SpecularIBLGenerator::getInstance()->setTextureUnits(m_cube_map);
|
||||
SpecularIBLGenerator::getInstance()->setUniforms(M[face],
|
||||
|
Loading…
Reference in New Issue
Block a user