diff options
author | couriersud <couriersud@arcor.de> | 2015-02-25 23:44:17 +0100 |
---|---|---|
committer | couriersud <couriersud@arcor.de> | 2015-02-25 23:44:17 +0100 |
commit | 0fd2001a675cd51c7ec0915ec590fd486e9189cb (patch) | |
tree | 616a6b5082f8ca65bdb6286abf88aac5991a58bb /src/osd/windows/windows.mak | |
parent | f0525b96cec2ef7134133abdc5565af72015c22b (diff) |
Enable OpenGL renderer on Windows. By default, run-time function
resolution is enabled.
To resolve addresses, the code now first tries GetProcAddress followed
by wglGetProcAddress. [Couriersud]
Diffstat (limited to 'src/osd/windows/windows.mak')
-rw-r--r-- | src/osd/windows/windows.mak | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/osd/windows/windows.mak b/src/osd/windows/windows.mak index 62c9c11c74c..5810f4e178a 100644 --- a/src/osd/windows/windows.mak +++ b/src/osd/windows/windows.mak @@ -67,7 +67,10 @@ # USE_SDL = 1 # uncomment next line to compile OpenGL video renderer -# USE_OPENGL = 1 +USE_OPENGL = 1 + +# uncomment the next line to build a binary using GL-dispatching. +USE_DISPATCH_GL = 1 # uncomment next line to use QT debugger # USE_QTDEBUG = 1 @@ -403,7 +406,12 @@ OSDOBJS += $(WINOBJ)/../sdl/drawogl.o $(WINOBJ)/../sdl/gl_shader_tool.o $(WINOB OBJDIRS += $(WINOBJ)/../sdl DEFS += -DUSE_OPENGL=1 + +ifdef USE_DISPATCH_GL +DEFS += -DUSE_DISPATCH_GL=1 +else LIBS += -lopengl32 +endif else DEFS += -DUSE_OPENGL=0 |