From ff7103f94bb3f24d23c01b7fb53c8a7cd97fa156 Mon Sep 17 00:00:00 2001 From: Yun Hsiao Wu Date: Sat, 28 Dec 2019 18:51:19 +0800 Subject: [PATCH] don't specify shader version on PC (#2027) --- native/cocos/scripting/js-bindings/manual/jsb_opengl_manual.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/native/cocos/scripting/js-bindings/manual/jsb_opengl_manual.cpp b/native/cocos/scripting/js-bindings/manual/jsb_opengl_manual.cpp index 5ec60620a4..10cb0cce75 100644 --- a/native/cocos/scripting/js-bindings/manual/jsb_opengl_manual.cpp +++ b/native/cocos/scripting/js-bindings/manual/jsb_opengl_manual.cpp @@ -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"), "");