]> O.S.I.I.S - jp/crow.git/commitdiff
shader version 300 => 300 es
authorjpbruyere <jp.bruyere@hotmail.com>
Thu, 4 May 2017 07:40:38 +0000 (09:40 +0200)
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>
Thu, 1 Feb 2018 06:43:45 +0000 (07:43 +0100)
Tests/OpenGL/Shader.cs

index 6ae99b8910b3d47d6f94d8114176df738982ef8e..e77230d87f3738b681b42b3a50d3e79743e64c70 100644 (file)
@@ -51,7 +51,7 @@ namespace Crow
                                                GeomSourcePath;
                #region Sources
                protected string _vertSource = @"
-                       #version 330
+                       #version 300 es
                        precision lowp float;
 
                        uniform mat4 mvp;
@@ -68,7 +68,7 @@ namespace Crow
                        }";
 
                protected string _fragSource = @"
-                       #version 330
+                       #version 300 es
                        precision lowp float;
 
                        uniform sampler2D tex;
@@ -209,8 +209,8 @@ namespace Crow
                        GL.GetProgramInfoLog(pgmId, out info);
 
                        if (!string.IsNullOrEmpty (info)) {
-                               Debug.WriteLine ("Linkage:");
-                               Debug.WriteLine (info);
+                               Console.WriteLine ("Linkage:");
+                               Console.WriteLine (info);
                        }
 
                        info = null;
@@ -218,8 +218,8 @@ namespace Crow
                        GL.ValidateProgram(pgmId);
                        GL.GetProgramInfoLog(pgmId, out info);
                        if (!string.IsNullOrEmpty (info)) {
-                               Debug.WriteLine ("Validation:");
-                               Debug.WriteLine (info);
+                               Console.WriteLine ("Validation:");
+                               Console.WriteLine (info);
                        }
 
                        GL.UseProgram (pgmId);
@@ -302,14 +302,14 @@ namespace Crow
 
                        string info;
                        GL.GetShaderInfoLog(shader, out info);
-                       Debug.WriteLine(info);
+                       Console.WriteLine(info);
 
                        int compileResult;
                        GL.GetShader(shader, ShaderParameter.CompileStatus, out compileResult);
                        if (compileResult != 1)
                        {
-                               Debug.WriteLine("Compile Error!");
-                               Debug.WriteLine(source);
+                               Console.WriteLine("Compile Error!");
+                               Console.WriteLine(source);
                        }
                }
                public override string ToString ()