Merge branch 'plugin' of github.com:Swung0x48/MobileGlues into plugin

This commit is contained in:
BZLZHH 2025-02-08 02:00:46 +08:00
commit 0c1283a24b
2 changed files with 9 additions and 3 deletions

View File

@ -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) {

View File

@ -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() {