From 447d1ffa96479334e45692e98c4997264bb12e98 Mon Sep 17 00:00:00 2001 From: Tanasart <22589759+Ttanasart-pt@users.noreply.github.com> Date: Tue, 10 Sep 2024 09:55:58 +0700 Subject: [PATCH] - [Mac] [RM primitive] Fix shader not compiling. --- shaders/sh_rm_primitive/sh_rm_primitive.fsh | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/shaders/sh_rm_primitive/sh_rm_primitive.fsh b/shaders/sh_rm_primitive/sh_rm_primitive.fsh index e0438f276..37d113633 100644 --- a/shaders/sh_rm_primitive/sh_rm_primitive.fsh +++ b/shaders/sh_rm_primitive/sh_rm_primitive.fsh @@ -1,10 +1,16 @@ -#extension GL_OES_standard_derivatives : enable - //Inigo Quilez //Oh where would I be without you. -#define MAX_SHAPES 16 -#define MAX_OP 32 +#define MACOS 1 + +#ifdef MACOS + #define MAX_SHAPES 16 + #define MAX_OP 32 +#else + #extension GL_OES_standard_derivatives : enable + #define MAX_SHAPES 16 + #define MAX_OP 32 +#endif varying vec2 v_vTexcoord; varying vec4 v_vColour;