Should fix some building issues on Win32.

This commit is contained in:
Themaister 2010-11-13 18:50:34 +01:00
parent af48ea7165
commit 20fe8827e2
2 changed files with 9 additions and 0 deletions

2
gl.c
View File

@ -20,11 +20,13 @@
#include "driver.h"
#include "config.h"
#include <GL/glfw.h>
#include <GL/glext.h>
#include <stdint.h>
#include "libsnes.hpp"
#include <stdio.h>
#include <sys/time.h>
#ifdef HAVE_CG
#include <Cg/cg.h>
#include <Cg/cgGL.h>

View File

@ -22,6 +22,10 @@
#include <time.h>
#include <string.h>
#ifdef _WIN32
#include <windows.h>
#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);
}