Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cocos/renderer/CCGLProgram.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ bool GLProgram::compileShader(GLuint * shader, GLenum type, const GLchar* source
#elif CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID
headersDef = (type == GL_VERTEX_SHADER ?
"#version 100\n precision highp float;\n precision highp int;\n" :
"#version 100\n precision mediump float;\n precision mediump int;\n");
"#version 100\n precision highp float;\n precision highp int;\n");
#elif (CC_TARGET_PLATFORM != CC_PLATFORM_WIN32 && CC_TARGET_PLATFORM != CC_PLATFORM_LINUX && CC_TARGET_PLATFORM != CC_PLATFORM_MAC)
headersDef = (type == GL_VERTEX_SHADER ? "precision highp float;\n precision highp int;\n" : "precision mediump float;\n precision mediump int;\n");
#endif
Expand Down
3 changes: 0 additions & 3 deletions cocos/renderer/ccShader_PositionTextureColor_noMVP.frag
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@
*/

const char* ccPositionTextureColor_noMVP_frag = R"(
#ifdef GL_ES
precision lowp float;
#endif

varying vec4 v_fragmentColor;
varying vec2 v_texCoord;
Expand Down