mirror of
https://github.com/love2d/love.git
synced 2026-08-15 15:51:12 +02:00
Fixed a crash in love.window.setMode in Windows.
--HG-- branch : minor
This commit is contained in:
@@ -31,6 +31,14 @@
|
||||
// C
|
||||
#include <cstdio>
|
||||
|
||||
#ifdef LOVE_WINDOWS
|
||||
#include <Windows.h>
|
||||
#endif
|
||||
|
||||
#ifndef APIENTRY
|
||||
#define APIENTRY
|
||||
#endif
|
||||
|
||||
namespace love
|
||||
{
|
||||
namespace window
|
||||
@@ -302,7 +310,7 @@ bool Window::checkGLVersion(int versionmajor, int versionminor)
|
||||
{
|
||||
typedef unsigned char GLubyte;
|
||||
typedef unsigned int GLenum;
|
||||
typedef const GLubyte *(*glGetStringPtr)(GLenum name);
|
||||
typedef const GLubyte *(APIENTRY *glGetStringPtr)(GLenum name);
|
||||
const GLenum GL_VERSION_ENUM = 0x1F02;
|
||||
|
||||
// We don't have OpenGL headers or an automatic OpenGL function loader in
|
||||
|
||||
Reference in New Issue
Block a user