[nostalgia/core/opengl] Fix sprite drawing for instances of core that are not application wide

This commit is contained in:
Gary Talent 2023-11-13 20:55:50 -06:00
parent 597a8c736e
commit d7a6bc4ae4

View File

@ -357,9 +357,9 @@ ox::Error initGfx(
for (auto &bg : gctx.cbbs) { for (auto &bg : gctx.cbbs) {
initBackgroundBufferset(gctx.bgShader, bg); initBackgroundBufferset(gctx.bgShader, bg);
} }
initSpritesBufferset(gctx.spriteShader, gctx.spriteBlocks);
if (initParams.glInstallDrawer) { if (initParams.glInstallDrawer) {
turbine::gl::addDrawer(gctx.turbineCtx, &gctx.drawer); turbine::gl::addDrawer(gctx.turbineCtx, &gctx.drawer);
initSpritesBufferset(gctx.spriteShader, gctx.spriteBlocks);
} }
return {}; return {};
} }