From 1b41f5ac33622c8836e0797a6bcdefc48dfe80e0 Mon Sep 17 00:00:00 2001 From: lizzie Date: Thu, 5 Mar 2026 06:52:08 +0000 Subject: [PATCH] remove highp --- .patch/sgsr/0002-remove-highp.patch | 34 +++++++++++++++++++++++++++++ cpmfile.json | 3 ++- 2 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 .patch/sgsr/0002-remove-highp.patch diff --git a/.patch/sgsr/0002-remove-highp.patch b/.patch/sgsr/0002-remove-highp.patch new file mode 100644 index 0000000000..9d6b65b6be --- /dev/null +++ b/.patch/sgsr/0002-remove-highp.patch @@ -0,0 +1,34 @@ +diff --git a/sgsr/v1/include/glsl/sgsr1_shader_mobile.frag b/sgsr/v1/include/glsl/sgsr1_shader_mobile.frag +index 2db04b3..056d177 100644 +--- a/sgsr/v1/include/glsl/sgsr1_shader_mobile.frag ++++ b/sgsr/v1/include/glsl/sgsr1_shader_mobile.frag +@@ -8,8 +8,10 @@ + // + //============================================================================================================ + +-precision mediump float; +-precision highp int; ++//precision mediump float; ++//precision highp int; ++#define highp ++#define mediump + + //////////////////////// + // USER CONFIGURATION // +diff --git a/sgsr/v1/include/glsl/sgsr1_shader_mobile_edge_direction.frag b/sgsr/v1/include/glsl/sgsr1_shader_mobile_edge_direction.frag +index 5a38589..5ed5f5e 100644 +--- a/sgsr/v1/include/glsl/sgsr1_shader_mobile_edge_direction.frag ++++ b/sgsr/v1/include/glsl/sgsr1_shader_mobile_edge_direction.frag +@@ -8,8 +8,10 @@ + // + //============================================================================================================ + +-precision mediump float; +-precision highp int; ++//precision mediump float; ++//precision highp int; ++#define highp ++#define mediump + + //////////////////////// + // USER CONFIGURATION // diff --git a/cpmfile.json b/cpmfile.json index 93a8b35250..5eee2d918f 100644 --- a/cpmfile.json +++ b/cpmfile.json @@ -107,7 +107,8 @@ "hash": "3940df715189813ffeffa540f48673e999754d53a1dcadc16aab846ef03d57e395e2c8d8e89772bc162835e1686ff6bdb8cae108c1f84404e9e66d993107b76e", "sha": "d926f074bcb9d714e179f1ce0fcb9ee2eeb5074e", "patches": [ - "0001-fix-glsl.patch" + "0001-fix-glsl.patch", + "0002-remove-highp.patch" ] }, "quazip": {