summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2016-04-08 01:52:02 +0200
committerbunnei <bunneidev@gmail.com>2016-04-08 01:52:02 +0200
commit6e750ae12dd0d48d8e5e86e9452cefcd4a828d1d (patch)
tree658d45ce914dcae4be287cf4b392055f31cb0974
parentMerge pull request #1577 from JamePeng/update-apta-func (diff)
parentOpenGL: Fix a double framebuffer completeness checks. (diff)
downloadyuzu-6e750ae12dd0d48d8e5e86e9452cefcd4a828d1d.tar
yuzu-6e750ae12dd0d48d8e5e86e9452cefcd4a828d1d.tar.gz
yuzu-6e750ae12dd0d48d8e5e86e9452cefcd4a828d1d.tar.bz2
yuzu-6e750ae12dd0d48d8e5e86e9452cefcd4a828d1d.tar.lz
yuzu-6e750ae12dd0d48d8e5e86e9452cefcd4a828d1d.tar.xz
yuzu-6e750ae12dd0d48d8e5e86e9452cefcd4a828d1d.tar.zst
yuzu-6e750ae12dd0d48d8e5e86e9452cefcd4a828d1d.zip
-rw-r--r--src/video_core/renderer_opengl/gl_rasterizer.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp
index cc6b3aeab..4fdf93a3e 100644
--- a/src/video_core/renderer_opengl/gl_rasterizer.cpp
+++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp
@@ -139,8 +139,9 @@ void RasterizerOpenGL::InitObjects() {
}
state.Apply();
- ASSERT_MSG(glCheckFramebufferStatus(GL_FRAMEBUFFER) == GL_FRAMEBUFFER_COMPLETE,
- "OpenGL rasterizer framebuffer setup failed, status %X", glCheckFramebufferStatus(GL_FRAMEBUFFER));
+ GLenum status = glCheckFramebufferStatus(GL_FRAMEBUFFER);
+ ASSERT_MSG(status == GL_FRAMEBUFFER_COMPLETE,
+ "OpenGL rasterizer framebuffer setup failed, status %X", status);
}
void RasterizerOpenGL::Reset() {
@@ -808,8 +809,9 @@ void RasterizerOpenGL::SyncFramebuffer() {
ReloadDepthBuffer();
}
- ASSERT_MSG(glCheckFramebufferStatus(GL_FRAMEBUFFER) == GL_FRAMEBUFFER_COMPLETE,
- "OpenGL rasterizer framebuffer setup failed, status %X", glCheckFramebufferStatus(GL_FRAMEBUFFER));
+ GLenum status = glCheckFramebufferStatus(GL_FRAMEBUFFER);
+ ASSERT_MSG(status == GL_FRAMEBUFFER_COMPLETE,
+ "OpenGL rasterizer framebuffer setup failed, status %X", status);
}
void RasterizerOpenGL::SyncCullMode() {