Support EXT_blend_func_extended in GLES.

This lets us get dual source blending on GLES targets.
This commit is contained in:
Ryan Houdek 2015-09-04 20:25:59 -05:00
parent 3a04c77180
commit 5fa4c8d930
3 changed files with 8 additions and 1 deletions

View file

@ -560,6 +560,7 @@ void ProgramShaderCache::CreateHeader()
"%s\n" // AEP
"%s\n" // texture buffer
"%s\n" // ES texture buffer
"%s\n" // ES dual source blend
// Precision defines for GLSL ES
"%s\n"
@ -599,6 +600,7 @@ void ProgramShaderCache::CreateHeader()
, g_ogl_config.bSupportsAEP ? "#extension GL_ANDROID_extension_pack_es31a : enable" : ""
, v<GLSL_140 && g_ActiveConfig.backend_info.bSupportsPaletteConversion ? "#extension GL_ARB_texture_buffer_object : enable" : ""
, SupportedESTextureBuffer.c_str()
, is_glsles && g_ActiveConfig.backend_info.bSupportsDualSourceBlend ? "#extension GL_EXT_blend_func_extended : enable" : ""
, is_glsles ? "precision highp float;" : ""
, is_glsles ? "precision highp int;" : ""