Skip to content

Commit

Permalink
nv2a: Process pending surface uploads before render to texture
Browse files Browse the repository at this point in the history
  • Loading branch information
abaire authored May 11, 2022
1 parent 496a7b7 commit aec2883
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion hw/xbox/nv2a/pgraph.c
Original file line number Diff line number Diff line change
Expand Up @@ -6327,7 +6327,11 @@ static void pgraph_bind_textures(NV2AState *d)
SurfaceBinding *surface = pgraph_surface_get(d, texture_vram_offset);
if (surface != NULL) {
surf_to_tex = pgraph_check_surface_to_texture_compatibility(
surface, &state);
surface, &state);

if (surf_to_tex && surface->upload_pending) {
pgraph_upload_surface_data(d, surface, false);
}
}

if (!surf_to_tex) {
Expand Down

0 comments on commit aec2883

Please sign in to comment.