Check for ARB_blend_func_extended GL extension.

Also check for NV_draw_texture on desktop.
This commit is contained in:
Henrik Rydgard committed 2013-12-03 20:06:05 +01:00
1 parent 5a5911eac4
commit 6aa4919c5e
2 files changed
+5 -1

No files matched your search

+3 -1
View File
@@ -197,6 +197,9 @@ void CheckGLExtensions() {
// gl_extensions.EXT_swap_control_tear = strstr(glXString, "GLX_EXT_swap_control_tear") != 0;
#endif
gl_extensions.NV_draw_texture = strstr(extString, "GL_NV_draw_texture") != 0;
gl_extensions.ARB_blend_func_extended = strstr(extString, "GL_ARB_blend_func_extended") != 0;
#ifdef USING_GLES2
gl_extensions.OES_packed_depth_stencil = strstr(extString, "GL_OES_packed_depth_stencil") != 0;
gl_extensions.OES_depth24 = strstr(extString, "GL_OES_depth24") != 0;
@@ -204,7 +207,6 @@ void CheckGLExtensions() {
gl_extensions.OES_mapbuffer = strstr(extString, "GL_OES_mapbuffer") != 0;
gl_extensions.EXT_blend_minmax = strstr(extString, "GL_EXT_blend_minmax") != 0;
gl_extensions.EXT_shader_framebuffer_fetch = (strstr(extString, "GL_EXT_shader_framebuffer_fetch") != 0) || (strstr(extString, "GL_NV_shader_framebuffer_fetch") != 0);
gl_extensions.NV_draw_texture = strstr(extString, "GL_NV_draw_texture") != 0;
gl_extensions.NV_copy_image = strstr(extString, "GL_NV_copy_image") != 0;
gl_extensions.EXT_unpack_subimage = strstr(extString, "GL_EXT_unpack_subimage") != 0;
#if defined(ANDROID) || defined(BLACKBERRY)
+2
View File
@@ -46,6 +46,8 @@ struct GLExtensions {
bool NV_draw_texture;
bool NV_copy_image;
bool EXT_unpack_subimage; // always supported on desktop and ES3
bool ARB_blend_func_extended; // dual source blending
// EGL extensions
bool EGL_NV_system_time;