make PaletteTexture private and only use it for sprite renders

This commit is contained in:
Matthias Mailänder
2013-04-04 18:40:56 +02:00
parent 99516fd2b9
commit 6c6f5601d8
5 changed files with 22 additions and 13 deletions

View File

@@ -78,9 +78,9 @@ namespace OpenRA.Graphics
data[j,i] = c[i];
}
// Doesn't work
// TODO: Doesn't work (why?)
texture.SetData(data);
Game.Renderer.PaletteTexture = texture;
Game.Renderer.SetPalette(texture);
}
}
}