[nostalgia/core/opengl] Fix sprite drawing for instances of core that are not application wide
This commit is contained in:
		| @@ -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 {}; | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user