From 8473be2a0c25f7130985a7e6102cea385a258c47 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Wed, 22 Apr 2020 22:35:28 +0200 Subject: [PATCH] - some final cleanup. --- src/win32/i_system.h | 5 ++++- src/win32/win32glvideo.cpp | 1 - 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/win32/i_system.h b/src/win32/i_system.h index c9413631c..cf2673717 100644 --- a/src/win32/i_system.h +++ b/src/win32/i_system.h @@ -3,8 +3,11 @@ #ifndef __I_SYSTEM__ #define __I_SYSTEM__ -#include "doomtype.h" +#include "basics.h" #include +#include "tarray.h" +#include "zstring.h" +#include "utf8.h" struct ticcmd_t; struct WadStuff; diff --git a/src/win32/win32glvideo.cpp b/src/win32/win32glvideo.cpp index 4227f55b9..80dadfd0e 100644 --- a/src/win32/win32glvideo.cpp +++ b/src/win32/win32glvideo.cpp @@ -409,7 +409,6 @@ bool Win32GLVideo::InitHardware(HWND Window, int multisample) int prof = WGL_CONTEXT_CORE_PROFILE_BIT_ARB; const char *version = Args->CheckValue("-glversion"); - if (version != nullptr && strtod(version, nullptr) < 3.0) prof = WGL_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB; for (; prof <= WGL_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB; prof++) {