18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-12-01 14:07:06 +01:00

Rebase onto feat/gl46-migration: the code of the base the replayed hunks covered, back

The rebase replayed the hunks of this branch over the ones of feat/gl46-migration where both touched the same lines; this brings
back what of the base they covered: the null renderer, the black box of the camera, the opaque text displays, the motion blur of
the free camera (OpenGL 4.6 and Vulkan), the scenario loader catching std::exception. The log keeps off the console in test mode.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BqfRrTiBDaAyQ2gT6ZrnZD
This commit is contained in:
Claude
2026-11-24 12:11:07 +01:00
parent 501784ab86
commit da8f06dde1
7 changed files with 61 additions and 9 deletions
+6 -1
View File
@@ -1538,7 +1538,12 @@ void eu07_application::select_gfx_backend()
auto *factory{gfx_renderer_factory::get_instance()};
m_gfxbackend = nullptr;
if (Global.GfxRenderer == "vulkan")
if (Global.GfxRenderer == "null")
{
// draws nothing and loads no textures (test mode)
m_gfxbackend = factory->backend("null");
}
else if (Global.GfxRenderer == "vulkan")
{
// a renderer which can't run here falls back to opengl, so a setting in eu07.ini doesn't leave the user with a black screen
std::string reason;