Change Shader.Render to Shader.PrepareRender.

Instead of running the shader operation as an action, just run it after the shader is prepared.
This commit is contained in:
RoosterDragon
2018-04-26 21:18:14 +01:00
committed by Paul Chote
parent 95ac1aa5b2
commit 8ec90525e3
4 changed files with 8 additions and 9 deletions

View File

@@ -130,7 +130,7 @@ namespace OpenRA.Platforms.Default
}
}
public void Render(Action a)
public void PrepareRender()
{
VerifyThreadAffinity();
OpenGL.glUseProgram(program);
@@ -143,8 +143,6 @@ namespace OpenRA.Platforms.Default
}
OpenGL.CheckGLError();
a();
OpenGL.CheckGLError();
}
public void SetTexture(string name, ITexture t)