aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlejandro Marzini2010-07-31 19:57:54 +0000
committerAlejandro Marzini2010-07-31 19:57:54 +0000
commit6d6756b46ad68294e93438f18f082e346ff775f9 (patch)
treed4657a50ffcc720c5f3d43f37f7d6d90963e2824
parentfc94a3246a7ba26bf49205941a65e3acc3adb800 (diff)
downloadscummvm-rg350-6d6756b46ad68294e93438f18f082e346ff775f9.tar.gz
scummvm-rg350-6d6756b46ad68294e93438f18f082e346ff775f9.tar.bz2
scummvm-rg350-6d6756b46ad68294e93438f18f082e346ff775f9.zip
Add OpenGL dependencies to MinGW configure.
svn-id: r51551
-rw-r--r--backends/graphics/opengl/gltexture.cpp2
-rw-r--r--backends/graphics/opengl/opengl-graphics.cpp2
-rw-r--r--backends/graphics/openglsdl/openglsdl-graphics.cpp2
-rwxr-xr-xconfigure21
4 files changed, 17 insertions, 10 deletions
diff --git a/backends/graphics/opengl/gltexture.cpp b/backends/graphics/opengl/gltexture.cpp
index 7514fd0662..79e7cd48f0 100644
--- a/backends/graphics/opengl/gltexture.cpp
+++ b/backends/graphics/opengl/gltexture.cpp
@@ -23,7 +23,7 @@
*
*/
-#ifdef USE_OPENGL
+#if defined(USE_OPENGL)
#include "backends/graphics/opengl/gltexture.h"
#include "backends/graphics/opengl/glerrorcheck.h"
diff --git a/backends/graphics/opengl/opengl-graphics.cpp b/backends/graphics/opengl/opengl-graphics.cpp
index f1436170b8..7c47d5b967 100644
--- a/backends/graphics/opengl/opengl-graphics.cpp
+++ b/backends/graphics/opengl/opengl-graphics.cpp
@@ -23,7 +23,7 @@
*
*/
-#ifdef USE_OPENGL
+#if defined(USE_OPENGL)
#include "backends/graphics/opengl/opengl-graphics.h"
#include "backends/graphics/opengl/glerrorcheck.h"
diff --git a/backends/graphics/openglsdl/openglsdl-graphics.cpp b/backends/graphics/openglsdl/openglsdl-graphics.cpp
index 4dac109a01..c4eddbb8ad 100644
--- a/backends/graphics/openglsdl/openglsdl-graphics.cpp
+++ b/backends/graphics/openglsdl/openglsdl-graphics.cpp
@@ -23,7 +23,7 @@
*
*/
-#ifdef USE_OPENGL
+#if defined(USE_OPENGL)
#include "backends/graphics/openglsdl/openglsdl-graphics.h"
#include "backends/platform/sdl/sdl.h"
diff --git a/configure b/configure
index df2352e966..b6449e70a3 100755
--- a/configure
+++ b/configure
@@ -1428,6 +1428,9 @@ case $_host_os in
DEFINES="$DEFINES -DWIN32 -D__USE_MINGW_ANSI_STDIO=0"
LIBS="$LIBS -lmingw32 -lwinmm"
OBJS="$OBJS scummvmico.o"
+ OPENGL_CFLAGS=""
+ OPENGL_LIBS="-lopengl32"
+ add_line_to_config_mk 'WIN32 = 1'
;;
mint*)
DEFINES="$DEFINES -DSYSTEM_NOT_SUPPORTING_D_TYPE"
@@ -1484,13 +1487,17 @@ case $_host_os in
;;
esac
-# HACK: On non-OSX systems, add the GL library
-case $_host_os in
- *darwin*)
- ;;
- *)
- OPENGL_LIBS="$OPENGL_LIBS -lGL"
-esac
+# HACK: On non-OSX systems and no mingw compiler, add the GL library if using sdl backend
+if test "$_backend" = "sdl" ; then
+ case $_host_os in
+ *darwin*)
+ ;;
+ *mingw*)
+ ;;
+ *)
+ OPENGL_LIBS="$OPENGL_LIBS -lGL"
+ esac
+fi
if test -n "$_host"; then
# Cross-compiling mode - add your target here if needed