mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-02-24 18:27:00 +00:00
Updated according to the new enums.
This commit is contained in:
parent
9228f5ab9d
commit
6553940157
|
@ -90,14 +90,14 @@ namespace Examples.Tutorial
|
|||
int status_code;
|
||||
string info;
|
||||
|
||||
vertexObject = GL.CreateShader(ShaderObjectType.VertexShader);
|
||||
fragmentObject = GL.CreateShader(ShaderObjectType.FragmentShader);
|
||||
vertexObject = GL.CreateShader(ShaderType.VertexShader);
|
||||
fragmentObject = GL.CreateShader(ShaderType.FragmentShader);
|
||||
|
||||
// Compile vertex shader
|
||||
GL.ShaderSource(vertexObject, vs);
|
||||
GL.CompileShader(vertexObject);
|
||||
GL.GetShaderInfoLog(vertexObject, out info);
|
||||
GL.GetShader(vertexObject, Version20.CompileStatus, out status_code);
|
||||
GL.GetShader(vertexObject, ShaderParameter.CompileStatus, out status_code);
|
||||
|
||||
if (status_code != 1)
|
||||
throw new ApplicationException(info);
|
||||
|
@ -106,7 +106,7 @@ namespace Examples.Tutorial
|
|||
GL.ShaderSource(fragmentObject, fs);
|
||||
GL.CompileShader(fragmentObject);
|
||||
GL.GetShaderInfoLog(fragmentObject, out info);
|
||||
GL.GetShader(fragmentObject, Version20.CompileStatus, out status_code);
|
||||
GL.GetShader(fragmentObject, ShaderParameter.CompileStatus, out status_code);
|
||||
|
||||
if (status_code != 1)
|
||||
throw new ApplicationException(info);
|
||||
|
|
Loading…
Reference in a new issue