nv2a/gl: Prevent depth surface being used as display source

This commit is contained in:
Erik Abair
2025-11-06 11:53:21 -07:00
committed by GitHub
parent db8d27b9f4
commit 24b4b99a54
+1 -1
View File
@@ -378,7 +378,7 @@ void pgraph_gl_sync(NV2AState *d)
d->vga.get_params(&d->vga, &vga_display_params);
SurfaceBinding *surface = pgraph_gl_surface_get_within(d, d->pcrtc.start + vga_display_params.line_offset);
if (surface == NULL) {
if (surface == NULL || !surface->color) {
qemu_event_set(&d->pgraph.sync_complete);
return;
}