Skip to content

Commit 46791d4

Browse files
authored
Clarify GPU rendering behavior on system changes
Added a comment to clarify behavior after system or GPU changes.
1 parent 05446e6 commit 46791d4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/win/win_helpers.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
// Globals from main.cpp
77
extern GpuState g_displayGpuState;
8-
extern GpuState g_renderGpuState;
98
extern bool g_enableDgpuRendering;
109

1110
// Registry path for settings
@@ -89,6 +88,7 @@ LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
8988
case WM_DISPLAYCHANGE:
9089
case WM_DEVICECHANGE:
9190
case WM_POWERBROADCAST:
91+
// Respect current setting after system/GPU changes
9292
if (g_enableDgpuRendering)
9393
{
9494
ActivateRenderGPU();

0 commit comments

Comments
 (0)