Merge pull request #1638 from JayFoxRox/check-fb-complete

OpenGL: Check for framebuffer completeness
pull/8/head
linkmauve 9 years ago
commit 6105793843

@ -808,6 +808,9 @@ void RasterizerOpenGL::SyncFramebuffer() {
ReloadDepthBuffer(); ReloadDepthBuffer();
} }
ASSERT_MSG(glCheckFramebufferStatus(GL_FRAMEBUFFER) == GL_FRAMEBUFFER_COMPLETE,
"OpenGL rasterizer framebuffer setup failed, status %X", glCheckFramebufferStatus(GL_FRAMEBUFFER));
} }
void RasterizerOpenGL::SyncCullMode() { void RasterizerOpenGL::SyncCullMode() {

Loading…
Cancel
Save