diff options
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer_cache.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp b/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp index 71ad7be74..63f5999ea 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp +++ b/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp @@ -398,14 +398,18 @@ SurfaceSurfaceRect_Tuple RasterizerCacheOpenGL::GetFramebufferSurfaces( Surface color_surface; if (using_color_fb) { color_surface = GetSurface(color_params); - color_rect = color_surface->GetSurfaceParams().GetRect(); + if (color_surface) { + color_rect = color_surface->GetSurfaceParams().GetRect(); + } } MathUtil::Rectangle<u32> depth_rect{}; Surface depth_surface; if (using_depth_fb) { depth_surface = GetSurface(depth_params); - depth_rect = depth_surface->GetSurfaceParams().GetRect(); + if (depth_surface) { + depth_rect = depth_surface->GetSurfaceParams().GetRect(); + } } MathUtil::Rectangle<u32> fb_rect{}; |