mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
nv2a: Prevent GL assert on END without BEGIN
This commit is contained in:
@@ -2497,6 +2497,8 @@ DEF_METHOD(NV097, SET_BEGIN_END)
|
||||
if (parameter == NV097_SET_BEGIN_END_OP_END) {
|
||||
if (pg->primitive_mode == PRIM_TYPE_INVALID) {
|
||||
NV2A_DPRINTF("End without Begin!\n");
|
||||
pgraph_reset_inline_buffers(pg);
|
||||
return;
|
||||
}
|
||||
nv2a_profile_inc_counter(NV2A_PROF_BEGIN_ENDS);
|
||||
d->pgraph.renderer->ops.draw_end(d);
|
||||
|
||||
Reference in New Issue
Block a user