|
|
@ -78,7 +78,7 @@ void CLGLContext::begin() { |
|
|
|
|
|
|
|
|
|
|
|
void CLGLContext::end() { |
|
|
|
void CLGLContext::end() { |
|
|
|
GL_CHECK(glBindTexture(GL_TEXTURE_2D, 0)); |
|
|
|
GL_CHECK(glBindTexture(GL_TEXTURE_2D, 0)); |
|
|
|
GL_CHECK(glFramebufferRenderbuffer(GL_FRAMEBUFFER, GL_DEPTH_STENCIL_ATTACHMENT, GL_RENDERBUFFER, 0)); |
|
|
|
// GL_CHECK(glFramebufferRenderbuffer(GL_FRAMEBUFFER, GL_DEPTH_STENCIL_ATTACHMENT, GL_RENDERBUFFER, 0));
|
|
|
|
GL_CHECK(glBindRenderbuffer(GL_RENDERBUFFER, 0)); |
|
|
|
GL_CHECK(glBindRenderbuffer(GL_RENDERBUFFER, 0)); |
|
|
|
GL_CHECK(glBindFramebuffer(GL_FRAMEBUFFER, 0)); |
|
|
|
GL_CHECK(glBindFramebuffer(GL_FRAMEBUFFER, 0)); |
|
|
|
//glFlush seems enough but i wanna make sure that there won't be race conditions.
|
|
|
|
//glFlush seems enough but i wanna make sure that there won't be race conditions.
|
|
|
|