nv2a/vk: Always provide early_context_init

This commit is contained in:
Matt Borgerson 2024-07-26 17:21:01 -07:00 committed by mborgerson
parent c4ac083d3d
commit d6e8307950
1 changed files with 8 additions and 8 deletions

View File

@ -24,13 +24,15 @@
#if HAVE_EXTERNAL_MEMORY
static GloContext *g_gl_context;
static void gl_context_init(void)
{
g_gl_context = glo_context_create();
}
#endif
static void early_context_init(void)
{
#if HAVE_EXTERNAL_MEMORY
g_gl_context = glo_context_create();
#endif
}
static void pgraph_vk_init_thread(NV2AState *d)
{
PGRAPHState *pg = &d->pgraph;
@ -201,9 +203,7 @@ static PGRAPHRenderer pgraph_vk_renderer = {
.name = "Vulkan",
.ops = {
.init = pgraph_vk_init,
#if HAVE_EXTERNAL_MEMORY
.early_context_init = gl_context_init,
#endif
.early_context_init = early_context_init,
.init_thread = pgraph_vk_init_thread,
.finalize = pgraph_vk_finalize,
.clear_report_value = pgraph_vk_clear_report_value,