stop displaying NoError so much, it makes people laugh too hard and hurt themselves
This commit is contained in:
parent
0a6fa56fbd
commit
98c1b7f508
|
@ -224,7 +224,7 @@ namespace BizHawk.Bizware.BizwareGL.Drivers.OpenTK
|
||||||
int linkStatus;
|
int linkStatus;
|
||||||
GL.GetProgram(pid, GetProgramParameterName.LinkStatus, out linkStatus);
|
GL.GetProgram(pid, GetProgramParameterName.LinkStatus, out linkStatus);
|
||||||
if(linkStatus == 0)
|
if(linkStatus == 0)
|
||||||
throw new InvalidOperationException("Error creating pipeline (link status false returned from glLinkProgram): " + errcode + "\r\n\r\n" + resultLog);
|
throw new InvalidOperationException("Error creating pipeline (link status false returned from glLinkProgram): " + "\r\n\r\n" + resultLog);
|
||||||
|
|
||||||
GL.ValidateProgram(pid);
|
GL.ValidateProgram(pid);
|
||||||
errcode = GL.GetError();
|
errcode = GL.GetError();
|
||||||
|
@ -237,7 +237,7 @@ namespace BizHawk.Bizware.BizwareGL.Drivers.OpenTK
|
||||||
int validateStatus;
|
int validateStatus;
|
||||||
GL.GetProgram(pid, GetProgramParameterName.ValidateStatus, out validateStatus);
|
GL.GetProgram(pid, GetProgramParameterName.ValidateStatus, out validateStatus);
|
||||||
if (validateStatus == 0)
|
if (validateStatus == 0)
|
||||||
throw new InvalidOperationException("Error creating pipeline (validateStatus status false returned from glValidateProgram): " + errcode + "\r\n\r\n" + resultLog);
|
throw new InvalidOperationException("Error creating pipeline (validateStatus status false returned from glValidateProgram): " + "\r\n\r\n" + resultLog);
|
||||||
|
|
||||||
//set the program to active, in case we need to set sampler uniforms on it
|
//set the program to active, in case we need to set sampler uniforms on it
|
||||||
GL.UseProgram(pid);
|
GL.UseProgram(pid);
|
||||||
|
|
Loading…
Reference in New Issue