summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2016-04-03 18:00:44 +0200
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2016-04-03 18:00:44 +0200
commit3219be8ee0efe0ad9e2d7399fe78a545aa263078 (patch)
tree49849bac7fdd95ffacc0319dd7c8d7ae8f614202 /src
parentOpenGL: Check for framebuffer completeness (diff)
downloadyuzu-3219be8ee0efe0ad9e2d7399fe78a545aa263078.tar
yuzu-3219be8ee0efe0ad9e2d7399fe78a545aa263078.tar.gz
yuzu-3219be8ee0efe0ad9e2d7399fe78a545aa263078.tar.bz2
yuzu-3219be8ee0efe0ad9e2d7399fe78a545aa263078.tar.lz
yuzu-3219be8ee0efe0ad9e2d7399fe78a545aa263078.tar.xz
yuzu-3219be8ee0efe0ad9e2d7399fe78a545aa263078.tar.zst
yuzu-3219be8ee0efe0ad9e2d7399fe78a545aa263078.zip
Diffstat (limited to 'src')
-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 21ad9ee77..ff44dfcfe 100644
--- a/src/video_core/renderer_opengl/gl_rasterizer.cpp
+++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp
@@ -140,8 +140,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() {
@@ -809,8 +810,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() {