feat(loader): detect rgba extension

This commit is contained in:
Swung0x48 2025-02-25 17:50:19 +08:00
parent 1cb7bef6f4
commit e8c5f18180
2 changed files with 6 additions and 0 deletions

View File

@ -160,6 +160,10 @@ void InitGLESCapabilities() {
g_gles_caps.GL_QCOM_texture_lod_bias = 1; g_gles_caps.GL_QCOM_texture_lod_bias = 1;
} else if (strcmp(extension, "GL_EXT_blend_func_extended") == 0) { } else if (strcmp(extension, "GL_EXT_blend_func_extended") == 0) {
g_gles_caps.GL_EXT_blend_func_extended = 1; g_gles_caps.GL_EXT_blend_func_extended = 1;
} else if (strcmp(extension, "GL_EXT_texture_format_BGRA8888") == 0) {
g_gles_caps.GL_EXT_texture_format_BGRA8888 = 1;
} else if (strcmp(extension, "GL_EXT_read_format_bgra") == 0) {
g_gles_caps.GL_EXT_read_format_bgra = 1;
} }
} else { } else {

View File

@ -180,6 +180,8 @@ struct gles_caps_t {
int GL_EXT_disjoint_timer_query; int GL_EXT_disjoint_timer_query;
int GL_QCOM_texture_lod_bias; int GL_QCOM_texture_lod_bias;
int GL_EXT_blend_func_extended; int GL_EXT_blend_func_extended;
int GL_EXT_texture_format_BGRA8888;
int GL_EXT_read_format_bgra;
}; };
extern struct gles_caps_t g_gles_caps; extern struct gles_caps_t g_gles_caps;