Reverted use of tchar.h which should be considered deprecated.

GZDoom is Unicode only - as should be the norm for any Windows application - and will not work when compiled as ANSI so there's no good reason to use this wrapper.
This commit is contained in:
Christoph Oelckers 2024-08-16 12:36:42 +02:00
commit 5fa220219e
3 changed files with 6 additions and 15 deletions

View file

@ -46,7 +46,6 @@ static void* PosixGetProcAddress (const GLubyte* name)
#undef APIENTRY
#endif
#include <windows.h>
#include <tchar.h>
#ifdef _MSC_VER
@ -77,7 +76,7 @@ static void CheckOpenGL(void)
{
if (opengl32dll == 0)
{
opengl32dll = LoadLibrary(_T("OpenGL32.DLL"));
opengl32dll = LoadLibraryA("OpenGL32.DLL");
if (opengl32dll != 0)
{
createcontext = (HGLRC(WINAPI*)(HDC)) GetProcAddress(opengl32dll, "wglCreateContext");