Skip to content

Commit

Permalink
Fix #155
Browse files Browse the repository at this point in the history
  • Loading branch information
JesseTG committed Jun 12, 2024
1 parent 6667266 commit 4a835ff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/libretro/core/core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -316,15 +316,15 @@ bool MelonDsDs::CoreState::InitErrorScreen(const config_exception& e) noexcept {
retro::task::reset();
_messageScreen = std::make_unique<error::ErrorScreen>(e);
Config.SetConfiguredRenderer(RenderMode::Software);
_renderState.Apply(Config);
_screenLayout.Apply(Config, _renderState);
_screenLayout.Update();
retro::error("Error screen initialized");
return true;
}

void MelonDsDs::CoreState::RenderErrorScreen() noexcept {
assert(_messageScreen != nullptr);

_screenLayout.Update();
_renderState.Render(*_messageScreen, Config, _screenLayout);
}

Expand Down
7 changes: 3 additions & 4 deletions test/cmake/Video.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,8 @@ add_python_test(
# See https://github.com/JesseTG/melonds-ds/issues/155
add_python_test(
NAME "Core does not crash at in-core error screen when using OpenGL"
TEST_MODULE ""
CONTENT "${NDS_ROM}"
TEST_MODULE basics.core_run_frames
CORE_OPTION "melonds_render_mode=opengl"
REQUIRES_OPENGL
DISABLED
) # TODO: Implement
NO_SKIP_ERROR_SCREEN
)

0 comments on commit 4a835ff

Please sign in to comment.