Use TCHAR on Windows

This commit is contained in:
Ritchie Swann 2024-08-11 09:32:33 +01:00 committed by Rachael Alexanderson
parent 801dc4aaac
commit 120c0fb5ca
No known key found for this signature in database
GPG key ID: 26A8ACCE97115EE0

View file

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