1
0
mirror of synced 2024-11-12 02:00:50 +01:00

Try to fix build again

This commit is contained in:
KillzXGaming 2019-09-08 17:08:09 -04:00
parent 9dc4aeccc5
commit ffb41778c3

View File

@ -107,7 +107,7 @@ namespace LayoutBXLYT
public int this[string name]
{
get => uniforms[name];
get { return uniforms[name]; }
}
private void LoadAttributes(int program)
@ -117,7 +117,8 @@ namespace LayoutBXLYT
GL.GetProgram(program, GetProgramParameterName.ActiveAttributes, out activeAttributeCount);
for (int i = 0; i < activeAttributeCount; i++)
{
string name = GL.GetActiveAttrib(program, i, out int size, out ActiveAttribType type);
int size = 0;
string name = GL.GetActiveAttrib(program, i, out size, out ActiveAttribType type);
int location = GL.GetAttribLocation(program, name);
// Overwrite existing vertex attributes.
@ -132,7 +133,8 @@ namespace LayoutBXLYT
GL.GetProgram(program, GetProgramParameterName.ActiveUniforms, out activeAttributeCount);
for (int i = 0; i < activeAttributeCount; i++)
{
string name = GL.GetActiveUniform(program, i, out int size, out ActiveUniformType type);
int size = 0;
string name = GL.GetActiveUniform(program, i, out size, out ActiveUniformType type);
int location = GL.GetUniformLocation(program, name);
// Overwrite existing vertex attributes.