From d7a6bc4ae46cc5deeadaa1213bd0bf91a70376ce Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Mon, 13 Nov 2023 20:55:50 -0600 Subject: [PATCH] [nostalgia/core/opengl] Fix sprite drawing for instances of core that are not application wide --- src/nostalgia/modules/core/src/opengl/gfx.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nostalgia/modules/core/src/opengl/gfx.cpp b/src/nostalgia/modules/core/src/opengl/gfx.cpp index b64e0f64..1c49b6c1 100644 --- a/src/nostalgia/modules/core/src/opengl/gfx.cpp +++ b/src/nostalgia/modules/core/src/opengl/gfx.cpp @@ -357,9 +357,9 @@ ox::Error initGfx( for (auto &bg : gctx.cbbs) { initBackgroundBufferset(gctx.bgShader, bg); } + initSpritesBufferset(gctx.spriteShader, gctx.spriteBlocks); if (initParams.glInstallDrawer) { turbine::gl::addDrawer(gctx.turbineCtx, &gctx.drawer); - initSpritesBufferset(gctx.spriteShader, gctx.spriteBlocks); } return {}; }