Fixed wrong datatype for shaders and programs.

This is a pointer on Mac OS X, so it risked losing data in 64-bit builds.
This commit is contained in:
Ryan C. Gordon 2011-08-23 06:27:04 -04:00
parent 315893bf28
commit 84d42b9a9f
2 changed files with 8 additions and 8 deletions

View file

@ -29,9 +29,9 @@ enum {
};
typedef struct {
GLuint program;
GLuint vert_shader;
GLuint frag_shader;
GLhandleARB program;
GLhandleARB vert_shader;
GLhandleARB frag_shader;
const char *vert_source;
const char *frag_source;
} ShaderData;
@ -124,7 +124,7 @@ static PFNGLSHADERSOURCEARBPROC glShaderSourceARB;
static PFNGLUNIFORM1IARBPROC glUniform1iARB;
static PFNGLUSEPROGRAMOBJECTARBPROC glUseProgramObjectARB;
static SDL_bool CompileShader(GLenum shader, const char *source)
static SDL_bool CompileShader(GLhandleARB shader, const char *source)
{
GLint status;