unbug prev, and remove misleading code that no longer works

This commit is contained in:
Bob
2010-04-11 22:44:39 +12:00
parent 0f98df9a88
commit 96af8b037a
4 changed files with 6 additions and 11 deletions

View File

@@ -110,12 +110,9 @@ namespace OpenRA.Graphics
}
public void DrawBatch<T>(IVertexBuffer<T> vertices, IIndexBuffer indices,
Range<int> vertexRange, Range<int> indexRange, ITexture texture, PrimitiveType type, IShader shader)
Range<int> vertexRange, Range<int> indexRange, PrimitiveType type, IShader shader)
where T : struct
{
shader.SetValue("DiffuseTexture", texture);
shader.Commit();
vertices.Bind();
indices.Bind();
@@ -125,12 +122,9 @@ namespace OpenRA.Graphics
}
public void DrawBatch<T>(IVertexBuffer<T> vertices, IIndexBuffer indices,
int vertexPool, int numPrimitives, ITexture texture, PrimitiveType type)
int vertexPool, int numPrimitives, PrimitiveType type)
where T : struct
{
SpriteShader.SetValue("DiffuseTexture", texture);
SpriteShader.Commit();
vertices.Bind();
indices.Bind();