fix: remove D3D11 debug layer flag that prevented startup on user machines
DRAGONX_DEBUG was defined unconditionally, causing D3D11CreateDevice() to request the debug layer via D3D11_CREATE_DEVICE_DEBUG. This layer is only available on machines with the Windows SDK or Graphics Tools installed, so the call fails with DXGI_ERROR_SDK_COMPONENT_MISSING on regular user machines — causing the app to silently exit.
This commit is contained in:
@@ -528,7 +528,8 @@ inline void SettingsScreen::renderAboutSection() {
|
||||
ImGui::SetCursorPosX(ImGui::GetCursorPosX() + (availWidth - nameSize.x) * 0.5f);
|
||||
Typography::instance().text(TypeStyle::H6, appName);
|
||||
|
||||
const char* version = "Version 1.0.0-imgui";
|
||||
char version[64];
|
||||
snprintf(version, sizeof(version), "Version %s-imgui", DRAGONX_VERSION);
|
||||
ImVec2 versionSize = ImGui::CalcTextSize(version);
|
||||
ImGui::SetCursorPosX(ImGui::GetCursorPosX() + (availWidth - versionSize.x) * 0.5f);
|
||||
Typography::instance().textColored(TypeStyle::Caption, OnSurfaceMedium(), version);
|
||||
|
||||
Reference in New Issue
Block a user