Panic on incomplete framebuffer so can see where it was called with RUST_BACKTRACE=1

This commit is contained in:
iceiix 2018-10-07 09:43:00 -07:00
parent 7731117e4f
commit cceb1768b1
1 changed files with 1 additions and 1 deletions

View File

@ -840,7 +840,7 @@ pub fn check_framebuffer_status() {
if status != gl::FRAMEBUFFER_COMPLETE {
println!("glBindFramebuffer failed, glCheckFrameBufferStatus(GL_FRAMEBUFFER) = {} {}", status, s);
//panic!("glBindFramebuffer failed, glCheckFrameBufferStatus(GL_FRAMEBUFFER) = {} {}", status, s);
panic!("glBindFramebuffer failed, glCheckFrameBufferStatus(GL_FRAMEBUFFER) = {} {}", status, s);
}
}
}