diff options
Diffstat (limited to 'ccShader_ETC1AS_PositionTextureGray.frag.patch')
-rw-r--r-- | ccShader_ETC1AS_PositionTextureGray.frag.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/ccShader_ETC1AS_PositionTextureGray.frag.patch b/ccShader_ETC1AS_PositionTextureGray.frag.patch new file mode 100644 index 000000000000..15769fa04468 --- /dev/null +++ b/ccShader_ETC1AS_PositionTextureGray.frag.patch @@ -0,0 +1,22 @@ +--- /opt/cocos2d-x/cocos/renderer/ccShader_ETC1AS_PositionTextureGray.frag 2016-12-29 13:42:38.000000000 -0400 ++++ /tmp/ccShader_ETC1AS_PositionTextureGray.frag 2017-01-04 15:03:03.963362193 -0400 +@@ -23,10 +23,10 @@ + * THE SOFTWARE. + */ + +-const char* ccETC1ASPositionTextureGray_frag = R"( +-#ifdef GL_ES ++const char* ccETC1ASPositionTextureGray_frag = STRINGIFY( ++\n#ifdef GL_ES\n + precision mediump float; +-#endif ++\n#endif\n + + varying vec4 v_fragmentColor; + varying vec2 v_texCoord; +@@ -42,4 +42,4 @@ + gl_FragColor.rgb = vec3(0.2126*texColor.r + 0.7152*texColor.g + 0.0722*texColor.b); + gl_FragColor.a = texColor.a; + } +-)"; ++); |