Merge "Fix gl3stub.h"

This commit is contained in:
Andrew Hsieh
2014-07-21 06:14:23 +00:00
committed by Gerrit Code Review
3 changed files with 8 additions and 0 deletions

View File

@@ -14,6 +14,7 @@
*/ */
#include <GLES2/gl2.h> #include <GLES2/gl2.h>
#include <android/api-level.h>
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@@ -54,9 +55,11 @@ GLboolean gl3stubInit();
/* OpenGL ES 3.0 */ /* OpenGL ES 3.0 */
typedef unsigned short GLhalf; typedef unsigned short GLhalf;
#if __ANDROID_API__ <= 19
typedef khronos_int64_t GLint64; typedef khronos_int64_t GLint64;
typedef khronos_uint64_t GLuint64; typedef khronos_uint64_t GLuint64;
typedef struct __GLsync *GLsync; typedef struct __GLsync *GLsync;
#endif
/*------------------------------------------------------------------------- /*-------------------------------------------------------------------------
* Token definitions * Token definitions

View File

@@ -37,6 +37,8 @@ typedef int int32_t[sizeof(int) == 4];
#define ABI_NOTETYPE 1 #define ABI_NOTETYPE 1
#define ABI_ANDROID_API PLATFORM_SDK_VERSION #define ABI_ANDROID_API PLATFORM_SDK_VERSION
#define L 9999
/* /*
* Special ".note" entry to tag an Android binary and specify the ABI version. * Special ".note" entry to tag an Android binary and specify the ABI version.
* *

View File

@@ -14,6 +14,7 @@
*/ */
#include <GLES2/gl2.h> #include <GLES2/gl2.h>
#include <android/api-level.h>
#ifdef __cplusplus #ifdef __cplusplus
extern "C" extern "C"
@@ -64,9 +65,11 @@ GLboolean gl3stubInit();
/* OpenGL ES 3.0 */ /* OpenGL ES 3.0 */
typedef unsigned short GLhalf; typedef unsigned short GLhalf;
#if __ANDROID_API__ <= 19
typedef khronos_int64_t GLint64; typedef khronos_int64_t GLint64;
typedef khronos_uint64_t GLuint64; typedef khronos_uint64_t GLuint64;
typedef struct __GLsync *GLsync; typedef struct __GLsync *GLsync;
#endif
/*------------------------------------------------------------------------- /*-------------------------------------------------------------------------
* Token definitions * Token definitions