diff options
author | bunnei <bunneidev@gmail.com> | 2018-08-09 19:12:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-09 19:12:28 +0200 |
commit | f765a6b902396f72cace4553a16d5e46edc18e34 (patch) | |
tree | 7ae53baef302c6a72dfeeb8e7f09a115b29b06a8 /src/video_core/renderer_opengl/gl_rasterizer.cpp | |
parent | Implement BC5/DXN2 (#996) (diff) | |
parent | gl_rasterizer: Do not render when no render target is configured. (diff) | |
download | yuzu-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/video_core/renderer_opengl/gl_rasterizer.cpp')
-rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer.cpp | 5 |
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; |