mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-17 19:34:39 +01:00
iOS: Ignore gl3stubInit() on iOS, to avoid warnings.
It always returns true anyway.
This commit is contained in:
1 parent
9f98f440c8
commit
8d3a4fae8e
2 files changed
+11
-7
No files matched your search
@@ -14,15 +14,14 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include "ppsspp_config.h"
|
||||
#include "../gfx/gl_common.h"
|
||||
|
||||
#if defined(USING_GLES2)
|
||||
#if !defined(IOS)
|
||||
#if !PPSSPP_PLATFORM(IOS)
|
||||
#include "EGL/egl.h"
|
||||
#endif
|
||||
|
||||
GLboolean gl3stubInit() {
|
||||
#if !defined(IOS)
|
||||
#define FIND_PROC(s) s = (void*)eglGetProcAddress(#s)
|
||||
FIND_PROC(glReadBuffer);
|
||||
FIND_PROC(glDrawRangeElements);
|
||||
@@ -145,7 +144,6 @@ GLboolean gl3stubInit() {
|
||||
|
||||
#undef FIND_PROC
|
||||
|
||||
#endif // IOS
|
||||
if (!glReadBuffer ||
|
||||
!glDrawRangeElements ||
|
||||
!glTexImage3D ||
|
||||
@@ -257,8 +255,6 @@ GLboolean gl3stubInit() {
|
||||
return GL_TRUE;
|
||||
}
|
||||
|
||||
#if !defined(IOS)
|
||||
|
||||
/* Function pointer definitions */
|
||||
GL_APICALL void (* GL_APIENTRY glReadBuffer) (GLenum mode);
|
||||
GL_APICALL void (* GL_APIENTRY glDrawRangeElements) (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid* indices);
|
||||
@@ -379,6 +375,12 @@ GL_APICALL void (* GL_APIENTRY glBufferStorageEXT) (GLenum target, GLs
|
||||
/* OES_copy_image, etc. */
|
||||
GL_APICALL void (* GL_APIENTRY glCopyImageSubDataOES) (GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei width, GLsizei height, GLsizei depth);
|
||||
|
||||
#else
|
||||
|
||||
GLboolean gl3stubInit() {
|
||||
return GL_TRUE;
|
||||
}
|
||||
|
||||
#endif // IOS
|
||||
|
||||
#endif // GLES2
|
||||
|
||||
@@ -11,6 +11,8 @@
|
||||
* - Added gl3stubInit() declaration
|
||||
*/
|
||||
|
||||
#include "ppsspp_config.h"
|
||||
|
||||
#if defined(USING_GLES2)
|
||||
|
||||
#ifdef __cplusplus
|
||||
@@ -45,7 +47,7 @@ extern "C" {
|
||||
* otherwise. */
|
||||
GLboolean gl3stubInit();
|
||||
|
||||
#if !defined(IOS)
|
||||
#if !PPSSPP_PLATFORM(IOS)
|
||||
|
||||
/*-------------------------------------------------------------------------
|
||||
* Data type definitions
|
||||
|
||||
Reference in new issue
Block a user