yuzu-emu
/
yuzu-mainline
Archived
1
0
Fork 0

gl_rasterizer: Do not render when no render target is configured.

- Used by Super Mario Odyssey.
This commit is contained in:
bunnei 2018-08-08 02:35:00 -04:00
parent cc2526dd51
commit ddec200290
1 changed files with 5 additions and 0 deletions

View File

@ -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;