summaryrefslogtreecommitdiff
path: root/src/modules/evas/engines/gl_common/evas_gl_shader.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/evas/engines/gl_common/evas_gl_shader.c')
-rw-r--r--src/modules/evas/engines/gl_common/evas_gl_shader.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/modules/evas/engines/gl_common/evas_gl_shader.c b/src/modules/evas/engines/gl_common/evas_gl_shader.c
index 7c33867..5702ce4 100644
--- a/src/modules/evas/engines/gl_common/evas_gl_shader.c
+++ b/src/modules/evas/engines/gl_common/evas_gl_shader.c
@@ -46,8 +46,9 @@ typedef enum {
46 SHADER_FLAG_FILTER_DIR_Y = (1 << 24), 46 SHADER_FLAG_FILTER_DIR_Y = (1 << 24),
47 SHADER_FLAG_FILTER_ALPHA_ONLY = (1 << 25), 47 SHADER_FLAG_FILTER_ALPHA_ONLY = (1 << 25),
48 SHADER_FLAG_FILTER_GRAYSCALE = (1 << 26), 48 SHADER_FLAG_FILTER_GRAYSCALE = (1 << 26),
49 SHADER_FLAG_FILTER_INVERSE_COLOR = (1 << 27),
49} Shader_Flag; 50} Shader_Flag;
50#define SHADER_FLAG_COUNT 27 51#define SHADER_FLAG_COUNT 28
51 52
52static const char *_shader_flags[SHADER_FLAG_COUNT] = { 53static const char *_shader_flags[SHADER_FLAG_COUNT] = {
53 "TEX", 54 "TEX",
@@ -77,6 +78,7 @@ static const char *_shader_flags[SHADER_FLAG_COUNT] = {
77 "FILTER_DIR_Y", 78 "FILTER_DIR_Y",
78 "ALPHA_ONLY", 79 "ALPHA_ONLY",
79 "FILTER_GRAYSCALE", 80 "FILTER_GRAYSCALE",
81 "FILTER_INVERSE_COLOR",
80}; 82};
81 83
82static Eina_Bool compiler_released = EINA_FALSE; 84static Eina_Bool compiler_released = EINA_FALSE;
@@ -829,6 +831,9 @@ evas_gl_common_shader_flags_get(Evas_GL_Shared *shared, Shader_Type type,
829 case SHD_FILTER_GRAYSCALE: 831 case SHD_FILTER_GRAYSCALE:
830 flags |= SHADER_FLAG_FILTER_GRAYSCALE; 832 flags |= SHADER_FLAG_FILTER_GRAYSCALE;
831 break; 833 break;
834 case SHD_FILTER_INVERSE_COLOR:
835 flags |= SHADER_FLAG_FILTER_INVERSE_COLOR;
836 break;
832 default: 837 default:
833 CRI("Impossible shader type."); 838 CRI("Impossible shader type.");
834 return 0; 839 return 0;