yuzu-emu
/
yuzu-mainline
Archived
1
0
Fork 0

Merge pull request #1639 from linkmauve/fix-double-framebuffer-check

OpenGL: Fix a double framebuffer completeness checks.
This commit is contained in:
bunnei 2016-04-07 19:52:02 -04:00
commit 6e750ae12d
1 changed files with 6 additions and 4 deletions

View File

@ -139,8 +139,9 @@ void RasterizerOpenGL::InitObjects() {
} }
state.Apply(); state.Apply();
ASSERT_MSG(glCheckFramebufferStatus(GL_FRAMEBUFFER) == GL_FRAMEBUFFER_COMPLETE, GLenum status = glCheckFramebufferStatus(GL_FRAMEBUFFER);
"OpenGL rasterizer framebuffer setup failed, status %X", glCheckFramebufferStatus(GL_FRAMEBUFFER)); ASSERT_MSG(status == GL_FRAMEBUFFER_COMPLETE,
"OpenGL rasterizer framebuffer setup failed, status %X", status);
} }
void RasterizerOpenGL::Reset() { void RasterizerOpenGL::Reset() {
@ -808,8 +809,9 @@ void RasterizerOpenGL::SyncFramebuffer() {
ReloadDepthBuffer(); ReloadDepthBuffer();
} }
ASSERT_MSG(glCheckFramebufferStatus(GL_FRAMEBUFFER) == GL_FRAMEBUFFER_COMPLETE, GLenum status = glCheckFramebufferStatus(GL_FRAMEBUFFER);
"OpenGL rasterizer framebuffer setup failed, status %X", glCheckFramebufferStatus(GL_FRAMEBUFFER)); ASSERT_MSG(status == GL_FRAMEBUFFER_COMPLETE,
"OpenGL rasterizer framebuffer setup failed, status %X", status);
} }
void RasterizerOpenGL::SyncCullMode() { void RasterizerOpenGL::SyncCullMode() {