mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-17 08:11:51 +00:00
gl: Fix framebuffer validity checks
This commit is contained in:
parent
a24780fe5e
commit
cb194e06ce
@ -838,9 +838,14 @@ bool GLGSRender::do_method(u32 cmd, u32 arg)
|
||||
{
|
||||
case NV4097_CLEAR_SURFACE:
|
||||
{
|
||||
init_buffers(true);
|
||||
synchronize_buffers();
|
||||
clear_surface(arg);
|
||||
if (arg & 0xF3)
|
||||
{
|
||||
//Only do all this if we have actual work to do
|
||||
init_buffers(true);
|
||||
synchronize_buffers();
|
||||
clear_surface(arg);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
case NV4097_TEXTURE_READ_SEMAPHORE_RELEASE:
|
||||
|
@ -169,6 +169,7 @@ void GLGSRender::init_buffers(bool skip_reading)
|
||||
{
|
||||
LOG_ERROR(RSX, "Invalid framebuffer setup, w=%d, h=%d", clip_horizontal, clip_vertical);
|
||||
framebuffer_status_valid = false;
|
||||
return;
|
||||
}
|
||||
|
||||
const auto pitchs = get_pitchs();
|
||||
|
Loading…
Reference in New Issue
Block a user