removing some dead crap
git-svn-id: svn://svn.ijw.co.nz/svn/OpenRa@1301 993157c7-ee19-0410-b2c4-bb4e9862e678
This commit is contained in:
@@ -15,6 +15,8 @@ namespace OpenRa.Game
|
||||
readonly GraphicsDevice device;
|
||||
Texture texture;
|
||||
|
||||
string filename = string.Format("../../../block-cache-{0}.png", suffix++);
|
||||
|
||||
public Size Size { get { return bitmap.Size; } }
|
||||
|
||||
public Sheet(Size size, GraphicsDevice d)
|
||||
@@ -36,10 +38,9 @@ namespace OpenRa.Game
|
||||
|
||||
void LoadTexture()
|
||||
{
|
||||
string tempFile = string.Format("../../../block-cache-{0}.png", suffix++);
|
||||
bitmap.Save(tempFile);
|
||||
bitmap.Save(filename);
|
||||
|
||||
using( Stream s = File.OpenRead(tempFile) )
|
||||
using( Stream s = File.OpenRead(filename) )
|
||||
texture = Texture.Create(s, device);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user