Gpu cleanup
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user