From: seungho Date: Tue, 26 Apr 2022 02:27:18 +0000 (+0900) Subject: [Tizen] Make undefined macro do not be used. X-Git-Tag: accepted/tizen/6.5/unified/20220513.142059~1^2 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git;a=commitdiff_plain;h=9b285590935d7dd5c873489c4d958b2a26225f33 [Tizen] Make undefined macro do not be used. - If in a system that didn't define GL_KHR_blend_equation_advanced, "#extension GL_KHR_blend_equation_advanced : enable" or "#if GL_KHR_blend_equation_advanced==1" can make troble. Change-Id: I5caea8aa919b37cf21951359c91eb7630c7a1748 Signed-off-by: seungho --- diff --git a/dali/internal/graphics/gles/gl-implementation.h b/dali/internal/graphics/gles/gl-implementation.h index e60fb8f..b7551a4 100644 --- a/dali/internal/graphics/gles/gl-implementation.h +++ b/dali/internal/graphics/gles/gl-implementation.h @@ -49,9 +49,11 @@ static constexpr const char* KHR_BLEND_EQUATION_ADVANCED = "GL_ static constexpr const char* DEFAULT_SAMPLER_TYPE = "sampler2D"; static constexpr const char* FRAGMENT_SHADER_ADVANCED_BLEND_EQUATION_PREFIX = + "#ifdef GL_KHR_blend_equation_advanced\n" "#extension GL_KHR_blend_equation_advanced : enable\n" + "#endif\n" - "#if GL_KHR_blend_equation_advanced==1 || __VERSION__>=320\n" + "#if defined(GL_KHR_blend_equation_advanced) || __VERSION__>=320\n" " layout(blend_support_all_equations) out;\n" "#endif\n";