Added glGenFramebuffers() to the function pointer list

This commit is contained in:
Sam Lantinga 2012-01-28 14:53:23 -05:00
parent 114800d3e6
commit d74752d82f
5 changed files with 12 additions and 4 deletions

View file

@ -1712,7 +1712,10 @@
C01FCF4F08A954540054247B /* Debug */ = { C01FCF4F08A954540054247B /* Debug */ = {
isa = XCBuildConfiguration; isa = XCBuildConfiguration;
buildSettings = { buildSettings = {
ARCHS = "$(ARCHS_STANDARD_32_BIT)"; ARCHS = (
armv7,
armv6,
);
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
GCC_OPTIMIZATION_LEVEL = 0; GCC_OPTIMIZATION_LEVEL = 0;
HEADER_SEARCH_PATHS = ../../include; HEADER_SEARCH_PATHS = ../../include;
@ -1727,7 +1730,10 @@
C01FCF5008A954540054247B /* Release */ = { C01FCF5008A954540054247B /* Release */ = {
isa = XCBuildConfiguration; isa = XCBuildConfiguration;
buildSettings = { buildSettings = {
ARCHS = "$(ARCHS_STANDARD_32_BIT)"; ARCHS = (
armv7,
armv6,
);
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
HEADER_SEARCH_PATHS = ../../include; HEADER_SEARCH_PATHS = ../../include;
IPHONEOS_DEPLOYMENT_TARGET = 3.1.3; IPHONEOS_DEPLOYMENT_TARGET = 3.1.3;

View file

@ -11,6 +11,7 @@ SDL_PROC(void, glDrawTexiOES, (GLint, GLint, GLint, GLint, GLint))
SDL_PROC(void, glEnable, (GLenum)) SDL_PROC(void, glEnable, (GLenum))
SDL_PROC(void, glEnableClientState, (GLenum)) SDL_PROC(void, glEnableClientState, (GLenum))
SDL_PROC(void, glFinish, (void)) SDL_PROC(void, glFinish, (void))
SDL_PROC(void, glGenFramebuffersOES, (GLsizei, GLuint *))
SDL_PROC(void, glGenTextures, (GLsizei, GLuint *)) SDL_PROC(void, glGenTextures, (GLsizei, GLuint *))
SDL_PROC(GLenum, glGetError, (void)) SDL_PROC(GLenum, glGetError, (void))
SDL_PROC(void, glGetIntegerv, (GLenum, GLint *)) SDL_PROC(void, glGetIntegerv, (GLenum, GLint *))

View file

@ -206,7 +206,7 @@ GLES_GetFBO(GLES_RenderData *data, Uint32 w, Uint32 h)
result = SDL_malloc(sizeof(GLES_FBOList)); result = SDL_malloc(sizeof(GLES_FBOList));
result->w = w; result->w = w;
result->h = h; result->h = h;
glGenFramebuffersOES(1, &result->FBO); data->glGenFramebuffersOES(1, &result->FBO);
result->next = data->framebuffers; result->next = data->framebuffers;
data->framebuffers = result; data->framebuffers = result;
} }

View file

@ -17,6 +17,7 @@ SDL_PROC(void, glDrawArrays, (GLenum, GLint, GLsizei))
SDL_PROC(void, glEnable, (GLenum)) SDL_PROC(void, glEnable, (GLenum))
SDL_PROC(void, glEnableVertexAttribArray, (GLuint)) SDL_PROC(void, glEnableVertexAttribArray, (GLuint))
SDL_PROC(void, glFinish, (void)) SDL_PROC(void, glFinish, (void))
SDL_PROC(void, glGenFramebuffers, (GLsizei, GLuint *))
SDL_PROC(void, glGenTextures, (GLsizei, GLuint *)) SDL_PROC(void, glGenTextures, (GLsizei, GLuint *))
SDL_PROC(void, glGetBooleanv, (GLenum, GLboolean *)) SDL_PROC(void, glGetBooleanv, (GLenum, GLboolean *))
SDL_PROC(const GLubyte *, glGetString, (GLenum)) SDL_PROC(const GLubyte *, glGetString, (GLenum))

View file

@ -210,7 +210,7 @@ GLES2_GetFBO(GLES2_DriverContext *data, Uint32 w, Uint32 h)
result = SDL_malloc(sizeof(GLES2_FBOList)); result = SDL_malloc(sizeof(GLES2_FBOList));
result->w = w; result->w = w;
result->h = h; result->h = h;
glGenFramebuffers(1, &result->FBO); data->glGenFramebuffers(1, &result->FBO);
result->next = data->framebuffers; result->next = data->framebuffers;
data->framebuffers = result; data->framebuffers = result;
} }