From 20fe8827e2be15c9f83774b240c9177b178dcb62 Mon Sep 17 00:00:00 2001 From: Themaister Date: Sat, 13 Nov 2010 18:50:34 +0100 Subject: [PATCH] Should fix some building issues on Win32. --- gl.c | 2 ++ openal.c | 7 +++++++ 2 files changed, 9 insertions(+) diff --git a/gl.c b/gl.c index 7b3b778a8c..0d098611e2 100644 --- a/gl.c +++ b/gl.c @@ -20,11 +20,13 @@ #include "driver.h" #include "config.h" #include +#include #include #include "libsnes.hpp" #include #include + #ifdef HAVE_CG #include #include diff --git a/openal.c b/openal.c index e704747bbd..75826541e7 100644 --- a/openal.c +++ b/openal.c @@ -22,6 +22,10 @@ #include #include +#ifdef _WIN32 +#include +#endif + #define BUFSIZE 128 typedef struct al @@ -217,6 +221,9 @@ static void __al_free(void *data) free(al->res_buf); } } + alcMakeContextCurrent(NULL); + alcDestroyContext(al->ctx); + alcCloseDevice(al->handle); free(al); }