Added glGenFramebuffers() to the function pointer list
authorSam Lantinga <slouken@libsdl.org>
Sat, 28 Jan 2012 14:53:23 -0500
changeset 6269 07e08cb58696
parent 6268 3aa24ec6bc39
child 6270 0cf2443a0b17
Added glGenFramebuffers() to the function pointer list
Xcode-iOS/Test/TestiPhoneOS.xcodeproj/project.pbxproj
src/render/opengles/SDL_glesfuncs.h
src/render/opengles/SDL_render_gles.c
src/render/opengles2/SDL_gles2funcs.h
src/render/opengles2/SDL_render_gles2.c
--- a/Xcode-iOS/Test/TestiPhoneOS.xcodeproj/project.pbxproj	Sat Jan 28 14:05:48 2012 -0500
+++ b/Xcode-iOS/Test/TestiPhoneOS.xcodeproj/project.pbxproj	Sat Jan 28 14:53:23 2012 -0500
@@ -1712,7 +1712,10 @@
 		C01FCF4F08A954540054247B /* Debug */ = {
 			isa = XCBuildConfiguration;
 			buildSettings = {
-				ARCHS = "$(ARCHS_STANDARD_32_BIT)";
+				ARCHS = (
+					armv7,
+					armv6,
+				);
 				"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
 				GCC_OPTIMIZATION_LEVEL = 0;
 				HEADER_SEARCH_PATHS = ../../include;
@@ -1727,7 +1730,10 @@
 		C01FCF5008A954540054247B /* Release */ = {
 			isa = XCBuildConfiguration;
 			buildSettings = {
-				ARCHS = "$(ARCHS_STANDARD_32_BIT)";
+				ARCHS = (
+					armv7,
+					armv6,
+				);
 				"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
 				HEADER_SEARCH_PATHS = ../../include;
 				IPHONEOS_DEPLOYMENT_TARGET = 3.1.3;
--- a/src/render/opengles/SDL_glesfuncs.h	Sat Jan 28 14:05:48 2012 -0500
+++ b/src/render/opengles/SDL_glesfuncs.h	Sat Jan 28 14:53:23 2012 -0500
@@ -11,6 +11,7 @@
 SDL_PROC(void, glEnable, (GLenum))
 SDL_PROC(void, glEnableClientState, (GLenum))
 SDL_PROC(void, glFinish, (void))
+SDL_PROC(void, glGenFramebuffersOES, (GLsizei, GLuint *))
 SDL_PROC(void, glGenTextures, (GLsizei, GLuint *))
 SDL_PROC(GLenum, glGetError, (void))
 SDL_PROC(void, glGetIntegerv, (GLenum, GLint *))
--- a/src/render/opengles/SDL_render_gles.c	Sat Jan 28 14:05:48 2012 -0500
+++ b/src/render/opengles/SDL_render_gles.c	Sat Jan 28 14:53:23 2012 -0500
@@ -206,7 +206,7 @@
        result = SDL_malloc(sizeof(GLES_FBOList));
        result->w = w;
        result->h = h;
-       glGenFramebuffersOES(1, &result->FBO);
+       data->glGenFramebuffersOES(1, &result->FBO);
        result->next = data->framebuffers;
        data->framebuffers = result;
    }
--- a/src/render/opengles2/SDL_gles2funcs.h	Sat Jan 28 14:05:48 2012 -0500
+++ b/src/render/opengles2/SDL_gles2funcs.h	Sat Jan 28 14:53:23 2012 -0500
@@ -17,6 +17,7 @@
 SDL_PROC(void, glEnable, (GLenum))
 SDL_PROC(void, glEnableVertexAttribArray, (GLuint))
 SDL_PROC(void, glFinish, (void))
+SDL_PROC(void, glGenFramebuffers, (GLsizei, GLuint *))
 SDL_PROC(void, glGenTextures, (GLsizei, GLuint *))
 SDL_PROC(void, glGetBooleanv, (GLenum, GLboolean *))
 SDL_PROC(const GLubyte *, glGetString, (GLenum))
--- a/src/render/opengles2/SDL_render_gles2.c	Sat Jan 28 14:05:48 2012 -0500
+++ b/src/render/opengles2/SDL_render_gles2.c	Sat Jan 28 14:53:23 2012 -0500
@@ -210,7 +210,7 @@
        result = SDL_malloc(sizeof(GLES2_FBOList));
        result->w = w;
        result->h = h;
-       glGenFramebuffers(1, &result->FBO);
+       data->glGenFramebuffers(1, &result->FBO);
        result->next = data->framebuffers;
        data->framebuffers = result;
    }