mirror of
https://github.com/JesseTG/melonds-ds.git
synced 2024-11-23 14:40:04 +00:00
Add some extra logging
This commit is contained in:
parent
7e7d4b5d77
commit
d5264a26dd
@ -226,12 +226,16 @@ void MelonDsDs::OpenGLRenderState::ContextReset(melonDS::NDS& nds, const CoreCon
|
|||||||
retro_assert(status == GL_FRAMEBUFFER_COMPLETE);
|
retro_assert(status == GL_FRAMEBUFFER_COMPLETE);
|
||||||
|
|
||||||
// Initialize global OpenGL resources (e.g. VAOs) and get config info (e.g. limits)
|
// Initialize global OpenGL resources (e.g. VAOs) and get config info (e.g. limits)
|
||||||
|
retro::debug("Setting up GL state");
|
||||||
glsm_ctl(GLSM_CTL_STATE_SETUP, nullptr);
|
glsm_ctl(GLSM_CTL_STATE_SETUP, nullptr);
|
||||||
|
retro::debug("Set up GL state");
|
||||||
|
|
||||||
// Start using global OpenGL structures
|
// Start using global OpenGL structures
|
||||||
{
|
{
|
||||||
TracyGpuZone("GLSM_CTL_STATE_BIND");
|
TracyGpuZone("GLSM_CTL_STATE_BIND");
|
||||||
|
retro::debug("Binding GL state");
|
||||||
glsm_ctl(GLSM_CTL_STATE_BIND, nullptr);
|
glsm_ctl(GLSM_CTL_STATE_BIND, nullptr);
|
||||||
|
retro::debug("Bound GL state");
|
||||||
}
|
}
|
||||||
|
|
||||||
// HACK: Makes the core resilient to context loss by cleaning up the stale OpenGL renderer
|
// HACK: Makes the core resilient to context loss by cleaning up the stale OpenGL renderer
|
||||||
@ -244,6 +248,7 @@ void MelonDsDs::OpenGLRenderState::ContextReset(melonDS::NDS& nds, const CoreCon
|
|||||||
}
|
}
|
||||||
renderer->SetRenderSettings(config.BetterPolygonSplitting(), config.ScaleFactor());
|
renderer->SetRenderSettings(config.BetterPolygonSplitting(), config.ScaleFactor());
|
||||||
nds.GPU.SetRenderer3D(std::move(renderer));
|
nds.GPU.SetRenderer3D(std::move(renderer));
|
||||||
|
retro::debug("Installed OpenGL renderer");
|
||||||
|
|
||||||
SetUpCoreOpenGlState(config);
|
SetUpCoreOpenGlState(config);
|
||||||
_contextInitialized = true;
|
_contextInitialized = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user