From 1a2b512ff0965442f99662ff276cc0fb6f5aa611 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Wed, 1 Dec 2010 14:54:13 +0000 Subject: BACKENDS: Use SDL_opengl.h instead of the nonstandard glext.h to ensure OpenGL 1.2 compatibility in Windows systems svn-id: r54700 --- backends/graphics/opengl/gltexture.h | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/backends/graphics/opengl/gltexture.h b/backends/graphics/opengl/gltexture.h index 944cdf221c..c5a06bbc54 100644 --- a/backends/graphics/opengl/gltexture.h +++ b/backends/graphics/opengl/gltexture.h @@ -36,11 +36,16 @@ #include #elif defined(MACOSX) #include -#elif defined(WIN32) -#include -#include #else + #include +#if defined(SDL_BACKEND) && !defined(GL_VERSION_1_2) +// The OpenGL libraries included in Windows are for OpenGL 1.1. Use the SDL +// OpenGL header file to enable the additional needed defines for OpenGL 1.2 +// here. +#include +#endif + #endif #include "graphics/surface.h" -- cgit v1.2.3