mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-12-12 07:36:59 +00:00
misc: chore: Use explicit types in OpenGL project
This commit is contained in:
parent
2d1a4c3ce5
commit
58c1ab7989
14 changed files with 65 additions and 63 deletions
|
|
@ -12,7 +12,7 @@ namespace Ryujinx.Graphics.OpenGL.Effects
|
|||
|
||||
public static int CompileProgram(string[] shaders, ShaderType shaderType)
|
||||
{
|
||||
var shader = GL.CreateShader(shaderType);
|
||||
int shader = GL.CreateShader(shaderType);
|
||||
GL.ShaderSource(shader, shaders.Length, shaders, (int[])null);
|
||||
GL.CompileShader(shader);
|
||||
|
||||
|
|
@ -25,7 +25,7 @@ namespace Ryujinx.Graphics.OpenGL.Effects
|
|||
return 0;
|
||||
}
|
||||
|
||||
var program = GL.CreateProgram();
|
||||
int program = GL.CreateProgram();
|
||||
GL.AttachShader(program, shader);
|
||||
GL.LinkProgram(program);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue