mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-06 23:11:25 +12:00
gl: Fix framebuffer validity checks
This commit is contained in:
parent
a24780fe5e
commit
cb194e06ce
2 changed files with 9 additions and 3 deletions
|
@ -838,9 +838,14 @@ bool GLGSRender::do_method(u32 cmd, u32 arg)
|
||||||
{
|
{
|
||||||
case NV4097_CLEAR_SURFACE:
|
case NV4097_CLEAR_SURFACE:
|
||||||
{
|
{
|
||||||
init_buffers(true);
|
if (arg & 0xF3)
|
||||||
synchronize_buffers();
|
{
|
||||||
clear_surface(arg);
|
//Only do all this if we have actual work to do
|
||||||
|
init_buffers(true);
|
||||||
|
synchronize_buffers();
|
||||||
|
clear_surface(arg);
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
case NV4097_TEXTURE_READ_SEMAPHORE_RELEASE:
|
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);
|
LOG_ERROR(RSX, "Invalid framebuffer setup, w=%d, h=%d", clip_horizontal, clip_vertical);
|
||||||
framebuffer_status_valid = false;
|
framebuffer_status_valid = false;
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const auto pitchs = get_pitchs();
|
const auto pitchs = get_pitchs();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue