Use the light computation/type GE accessors.

This commit is contained in:
Unknown W. Brackets committed 2013-07-21 19:44:30 -07:00
1 parent 988614f6d0
commit abd9dc6137
6 files changed
+28 -31

No files matched your search

+1 -1
View File
@@ -117,7 +117,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) {
if (gstate.isTextureMapEnabled()) {
textureCache_->SetTexture();
}
gstate_c.textureChanged = false;