Browse Source

Platform: fix -Wzero-as-null-pointer-constant on MinGW.

pull/650/head
Vladimír Vondruš 2 years ago
parent
commit
593ce980c2
  1. 2
      src/Magnum/Platform/WindowlessWglApplication.cpp

2
src/Magnum/Platform/WindowlessWglApplication.cpp

@ -75,7 +75,7 @@ WindowlessWglContext::WindowlessWglContext(const Configuration& configuration, G
/* Create the window */
_window = CreateWindowW(wc.lpszClassName, L"Magnum Windowless Application",
WS_OVERLAPPEDWINDOW, 0, 0, 32, 32, 0, 0, wc.hInstance, 0);
WS_OVERLAPPEDWINDOW, 0, 0, 32, 32, nullptr, nullptr, wc.hInstance, nullptr);
/* Get device context from the newly created window and save the previous
one. In case the previous one is null, wglMakeCurrent(null, ...) would

Loading…
Cancel
Save