summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-08-09 19:12:28 +0200
committerGitHub <noreply@github.com>2018-08-09 19:12:28 +0200
commitf765a6b902396f72cace4553a16d5e46edc18e34 (patch)
tree7ae53baef302c6a72dfeeb8e7f09a115b29b06a8 /src
parentImplement BC5/DXN2 (#996) (diff)
parentgl_rasterizer: Do not render when no render target is configured. (diff)
downloadyuzu-f765a6b902396f72cace4553a16d5e46edc18e34.tar
yuzu-f765a6b902396f72cace4553a16d5e46edc18e34.tar.gz
yuzu-f765a6b902396f72cace4553a16d5e46edc18e34.tar.bz2
yuzu-f765a6b902396f72cace4553a16d5e46edc18e34.tar.lz
yuzu-f765a6b902396f72cace4553a16d5e46edc18e34.tar.xz
yuzu-f765a6b902396f72cace4553a16d5e46edc18e34.tar.zst
yuzu-f765a6b902396f72cace4553a16d5e46edc18e34.zip
Diffstat (limited to 'src')
-rw-r--r--src/video_core/renderer_opengl/gl_rasterizer.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp
index bf6b5c3a0..546e86532 100644
--- a/src/video_core/renderer_opengl/gl_rasterizer.cpp
+++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp
@@ -324,6 +324,11 @@ std::pair<Surface, Surface> RasterizerOpenGL::ConfigureFramebuffers(bool using_c
bool using_depth_fb) {
const auto& regs = Core::System::GetInstance().GPU().Maxwell3D().regs;
+ if (regs.rt[0].format == Tegra::RenderTargetFormat::NONE) {
+ LOG_ERROR(HW_GPU, "RenderTargetFormat is not configured");
+ using_color_fb = false;
+ }
+
// TODO(bunnei): Implement this
const bool has_stencil = false;