Merge pull request #1232 from cinaera/integerdraw

Change texture even on clearmode
This commit is contained in:
Henrik Rydgård committed 2013-04-09 01:42:56 -07:00
commit 96d5fdcabb
1 file changed
+1 -1
+1 -1
View File
@@ -95,7 +95,7 @@ void TransformDrawEngine::ApplyDrawState(int prim) {
// TODO: All this setup is soon so expensive that we'll need dirty flags, or simply do it in the command writes where we detect dirty by xoring. Silly to do all this work on every drawcall.
if (gstate_c.textureChanged) {
if ((gstate.textureMapEnable & 1) && !gstate.isModeClear()) {
if (gstate.textureMapEnable & 1) {
textureCache_->SetTexture();
}
gstate_c.textureChanged = false;