Gpu cleanup

This commit is contained in:
luboslenco
2025-06-19 19:55:16 +02:00
parent be6eaf1327
commit a7df5974ae
116 changed files with 2034 additions and 2211 deletions
+3 -3
View File
@@ -408,7 +408,7 @@ void iron_mouse_get_position(int *x, int *y) {
__declspec(dllexport) unsigned long NvOptimusEnablement = 0x00000001;
__declspec(dllexport) int AmdPowerXpressRequestHighPerformance = 1;
void iron_gpu_internal_resize(int width, int height);
void gpu_internal_resize(int width, int height);
typedef BOOL(WINAPI *GetPointerInfoType)(UINT32 pointerId, POINTER_INFO *pointerInfo);
static GetPointerInfoType MyGetPointerInfo = NULL;
@@ -653,7 +653,7 @@ LRESULT WINAPI IronWindowsMessageProcedure(HWND hWnd, UINT msg, WPARAM wParam, L
case WM_SIZE: {
int width = LOWORD(lParam);
int height = HIWORD(lParam);
iron_gpu_internal_resize(width, height);
gpu_internal_resize(width, height);
iron_internal_call_resize_callback(width, height);
break;
}
@@ -1691,7 +1691,7 @@ void iron_internal_shutdown() {
iron_windows_hide_windows();
iron_internal_shutdown_callback();
iron_windows_destroy_windows();
iron_gpu_destroy();
gpu_destroy();
iron_windows_restore_displays();
}