summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-08-08 08:35:00 +0200
committerbunnei <bunneidev@gmail.com>2018-08-09 01:29:45 +0200
commitddec200290a4e6a4e4613ccf306a2d68e6e29707 (patch)
tree8e5b91c3b144a4d5d6eb63ddc3d67888e12223c7
parentMerge pull request #985 from bunnei/rt-r11g11b10 (diff)
downloadyuzu-ddec200290a4e6a4e4613ccf306a2d68e6e29707.tar
yuzu-ddec200290a4e6a4e4613ccf306a2d68e6e29707.tar.gz
yuzu-ddec200290a4e6a4e4613ccf306a2d68e6e29707.tar.bz2
yuzu-ddec200290a4e6a4e4613ccf306a2d68e6e29707.tar.lz
yuzu-ddec200290a4e6a4e4613ccf306a2d68e6e29707.tar.xz
yuzu-ddec200290a4e6a4e4613ccf306a2d68e6e29707.tar.zst
yuzu-ddec200290a4e6a4e4613ccf306a2d68e6e29707.zip
-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 b87b87e03..039e9e0ca 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;