From 693cbc1f8ff4b7c01c0f30b871e8301e6867d4c2 Mon Sep 17 00:00:00 2001 From: Jannik Vogel Date: Sun, 3 Apr 2016 17:05:04 +0200 Subject: OpenGL: Check for framebuffer completeness --- src/video_core/renderer_opengl/gl_rasterizer.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/video_core') diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp index 1fadcf5ae..21ad9ee77 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer.cpp +++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp @@ -808,6 +808,9 @@ void RasterizerOpenGL::SyncFramebuffer() { ReloadDepthBuffer(); } + + ASSERT_MSG(glCheckFramebufferStatus(GL_FRAMEBUFFER) == GL_FRAMEBUFFER_COMPLETE, + "OpenGL rasterizer framebuffer setup failed, status %X", glCheckFramebufferStatus(GL_FRAMEBUFFER)); } void RasterizerOpenGL::SyncCullMode() { -- cgit v1.2.3