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