mirror of
https://github.com/MobileGL-Dev/MobileGlues.git
synced 2025-09-22 02:32:29 -04:00
Merge branch 'plugin' of github.com:Swung0x48/MobileGlues into plugin
This commit is contained in:
commit
0c1283a24b
@ -77,9 +77,7 @@ void InitGLESBaseExtensions() {
|
||||
"OpenGL40 "
|
||||
//"OpenGL43 "
|
||||
//"ARB_compute_shader "
|
||||
"GL_ARB_get_program_binary "
|
||||
"GL_ARB_timer_query "
|
||||
"GL_EXT_timer_query ";
|
||||
"GL_ARB_get_program_binary ";
|
||||
}
|
||||
|
||||
void AppendExtension(const char* ext) {
|
||||
|
@ -131,6 +131,7 @@ void InitGLESCapabilities() {
|
||||
InitGLESBaseExtensions();
|
||||
|
||||
int has_GL_EXT_buffer_storage = 0;
|
||||
int has_GL_ARB_timer_query = 0;
|
||||
LOAD_GLES_FUNC(glGetStringi)
|
||||
LOAD_GLES_FUNC(glGetIntegerv)
|
||||
|
||||
@ -143,6 +144,8 @@ void InitGLESCapabilities() {
|
||||
LOG_I("%s", (const char*)extension);
|
||||
if (strcmp(extension, "GL_EXT_buffer_storage") == 0) {
|
||||
has_GL_EXT_buffer_storage = 1;
|
||||
} else if (strcmp(extension, "GL_EXT_disjoint_timer_query") == 0) {
|
||||
has_GL_ARB_timer_query = 1;
|
||||
}
|
||||
} else {
|
||||
LOG_I("(null)");
|
||||
@ -152,6 +155,11 @@ void InitGLESCapabilities() {
|
||||
if (has_GL_EXT_buffer_storage) {
|
||||
AppendExtension("GL_ARB_buffer_storage");
|
||||
}
|
||||
|
||||
if (has_GL_ARB_timer_query) {
|
||||
AppendExtension("GL_ARB_timer_query");
|
||||
AppendExtension("GL_EXT_timer_query");
|
||||
}
|
||||
}
|
||||
|
||||
void init_target_gles() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user