forked from suyu/suyu
Merge pull request #984 from bunnei/rt-none
gl_rasterizer: Do not render when no render target is configured.
This commit is contained in:
commit
f765a6b902
1 changed files with 5 additions and 0 deletions
|
@ -324,6 +324,11 @@ std::pair<Surface, Surface> RasterizerOpenGL::ConfigureFramebuffers(bool using_c
|
||||||
bool using_depth_fb) {
|
bool using_depth_fb) {
|
||||||
const auto& regs = Core::System::GetInstance().GPU().Maxwell3D().regs;
|
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
|
// TODO(bunnei): Implement this
|
||||||
const bool has_stencil = false;
|
const bool has_stencil = false;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue