Should fix some building issues on Win32.
This commit is contained in:
parent
af48ea7165
commit
20fe8827e2
2
gl.c
2
gl.c
|
@ -20,11 +20,13 @@
|
||||||
#include "driver.h"
|
#include "driver.h"
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include <GL/glfw.h>
|
#include <GL/glfw.h>
|
||||||
|
#include <GL/glext.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include "libsnes.hpp"
|
#include "libsnes.hpp"
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
|
|
||||||
|
|
||||||
#ifdef HAVE_CG
|
#ifdef HAVE_CG
|
||||||
#include <Cg/cg.h>
|
#include <Cg/cg.h>
|
||||||
#include <Cg/cgGL.h>
|
#include <Cg/cgGL.h>
|
||||||
|
|
7
openal.c
7
openal.c
|
@ -22,6 +22,10 @@
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
#ifdef _WIN32
|
||||||
|
#include <windows.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#define BUFSIZE 128
|
#define BUFSIZE 128
|
||||||
|
|
||||||
typedef struct al
|
typedef struct al
|
||||||
|
@ -217,6 +221,9 @@ static void __al_free(void *data)
|
||||||
free(al->res_buf);
|
free(al->res_buf);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
alcMakeContextCurrent(NULL);
|
||||||
|
alcDestroyContext(al->ctx);
|
||||||
|
alcCloseDevice(al->handle);
|
||||||
free(al);
|
free(al);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue