diff --git a/neo/sys/glimp.cpp b/neo/sys/glimp.cpp index 56dee6d7..1f303afb 100644 --- a/neo/sys/glimp.cpp +++ b/neo/sys/glimp.cpp @@ -33,9 +33,6 @@ If you have questions concerning this license or the applicable additional terms #include "framework/Licensee.h" #include "renderer/tr_local.h" -#if defined(_WIN32) -#include "sys/win32/win_local.h" -#endif /* =================== @@ -161,20 +158,6 @@ bool GLimp_Init(glimpParms_t parms) { return false; } -#ifdef _WIN32 - // the editors still rely on these vars - SDL_SysWMinfo info; - SDL_VERSION(&info.version); - - if (SDL_GetWMInfo(&info)) { - win32.hDC = wglGetCurrentDC(); - win32.hGLRC = info.hglrc; - } - - win32.pixelformat = GetPixelFormat(win32.hDC); - DescribePixelFormat(win32.hDC, win32.pixelformat, sizeof(win32.pfd), &win32.pfd); -#endif - return true; } diff --git a/neo/sys/win32/win_local.h b/neo/sys/win32/win_local.h index 32d48ff2..31fc0828 100644 --- a/neo/sys/win32/win_local.h +++ b/neo/sys/win32/win_local.h @@ -64,15 +64,6 @@ struct Win32Vars_t { OSVERSIONINFOEX osversion; - // when we get a windows message, we store the time off so keyboard processing - // can know the exact time of an event (not really needed now that we use async direct input) - int sysMsgTime; - - HDC hDC; // handle to device context - HGLRC hGLRC; // handle to GL rendering context - PIXELFORMATDESCRIPTOR pfd; - int pixelformat; - static idCVar win_outputDebugString; static idCVar win_outputEditString; static idCVar win_viewlog;