From 8a59cb2d6bb64cc9141789220f6b5b1c448dd3e4 Mon Sep 17 00:00:00 2001 From: ikpil Date: Mon, 17 Apr 2023 10:41:58 +0900 Subject: [PATCH] for mac --- src/DotRecast.Recast.Demo/Draw/ModernOpenGLDraw.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DotRecast.Recast.Demo/Draw/ModernOpenGLDraw.cs b/src/DotRecast.Recast.Demo/Draw/ModernOpenGLDraw.cs index 680c818..11dd3a7 100644 --- a/src/DotRecast.Recast.Demo/Draw/ModernOpenGLDraw.cs +++ b/src/DotRecast.Recast.Demo/Draw/ModernOpenGLDraw.cs @@ -76,7 +76,7 @@ public class ModernOpenGLDraw : OpenGLDraw public unsafe void init() { - string SHADER_VERSION = PlatformID.MacOSX == Environment.OSVersion.Platform ? "#version 400\n" : "#version 460\n"; + string SHADER_VERSION = "#version 400\n"; string vertex_shader = SHADER_VERSION + "uniform mat4 ProjMtx;\n" // + "uniform mat4 ViewMtx;\n" // + "in vec3 Position;\n" //