mirror of
https://github.com/MobileGL-Dev/MobileGlues.git
synced 2025-09-22 10:42:11 -04:00
feat(loader): detect rgba extension
This commit is contained in:
parent
1cb7bef6f4
commit
e8c5f18180
@ -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 {
|
||||||
|
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user