Просмотр исходного кода

sokol_app.h win32: always link with gdi32, not just in the GL backend

Andre Weissflog 4 лет назад
Родитель
Сommit
bd2066fcc1
1 измененных файлов с 1 добавлено и 3 удалено
  1. 1 3
      sokol_app.h

+ 1 - 3
sokol_app.h

@@ -1709,14 +1709,12 @@ inline void sapp_run(const sapp_desc& desc) { return sapp_run(&desc); }
     #pragma comment (lib, "kernel32")
     #pragma comment (lib, "user32")
     #pragma comment (lib, "shell32")    /* CommandLineToArgvW, DragQueryFileW, DragFinished */
+    #pragma comment (lib, "gdi32")
     #if defined(SOKOL_D3D11)
         #pragma comment (lib, "dxgi")
         #pragma comment (lib, "d3d11")
         #pragma comment (lib, "dxguid")
     #endif
-    #if defined(SOKOL_GLCORE33)
-        #pragma comment (lib, "gdi32")
-    #endif
 
     #if defined(SOKOL_D3D11)
         #ifndef D3D11_NO_HELPERS