mirror of https://github.com/xemu-project/xemu.git
nv2a/vk: Clear in separate renderpass for now
This commit is contained in:
parent
31db8d04b0
commit
ca42f0f2df
|
@ -1456,6 +1456,10 @@ static void begin_draw(PGRAPHState *pg)
|
|||
end_query(r);
|
||||
}
|
||||
|
||||
if (pg->clearing) {
|
||||
end_render_pass(r);
|
||||
}
|
||||
|
||||
bool must_bind_pipeline = r->pipeline_binding_changed;
|
||||
|
||||
if (!r->in_render_pass) {
|
||||
|
@ -1524,6 +1528,10 @@ static void end_draw(PGRAPHState *pg)
|
|||
assert(r->in_command_buffer);
|
||||
assert(r->in_render_pass);
|
||||
|
||||
if (pg->clearing) {
|
||||
end_render_pass(r);
|
||||
}
|
||||
|
||||
r->in_draw = false;
|
||||
|
||||
// FIXME: We could clear less
|
||||
|
|
Loading…
Reference in New Issue