mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-20 23:52:40 +08:00
don't specify shader version on PC (#2027)
This commit is contained in:
@@ -3220,8 +3220,6 @@ static bool JSB_glShaderSource(se::State& s) {
|
||||
#if CC_TARGET_PLATFORM == CC_PLATFORM_MAC || CC_TARGET_PLATFORM == CC_PLATFORM_WIN32
|
||||
#if CC_TARGET_PLATFORM == CC_PLATFORM_MAC
|
||||
shaderSource = "#version 120\n" + shaderSource;
|
||||
#else
|
||||
shaderSource = "#version 130\n" + shaderSource;
|
||||
#endif
|
||||
shaderSource = std::regex_replace(shaderSource, std::regex("precision\\s+(lowp|mediump|highp).*?;"), "");
|
||||
shaderSource = std::regex_replace(shaderSource, std::regex("(lowp|mediump|highp)\\s"), "");
|
||||
|
||||
Reference in New Issue
Block a user