mirror of https://github.com/xemu-project/xemu.git
nv2a/vk: Add texture finalize checks
This commit is contained in:
parent
f68159d1c4
commit
894bcf1b58
|
@ -1523,6 +1523,8 @@ void pgraph_vk_finalize_textures(PGRAPHState *pg)
|
|||
{
|
||||
PGRAPHVkState *r = pg->vk_renderer_state;
|
||||
|
||||
assert(!r->in_command_buffer);
|
||||
|
||||
for (int i = 0; i < NV2A_MAX_TEXTURES; i++) {
|
||||
r->texture_bindings[i] = NULL;
|
||||
}
|
||||
|
@ -1530,6 +1532,8 @@ void pgraph_vk_finalize_textures(PGRAPHState *pg)
|
|||
destroy_dummy_texture(r);
|
||||
texture_cache_finalize(r);
|
||||
|
||||
assert(r->texture_cache.num_used == 0);
|
||||
|
||||
g_free(r->texture_format_properties);
|
||||
r->texture_format_properties = NULL;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue