From 2e2d02302ba589715faa3ecfeeaffa79905b3808 Mon Sep 17 00:00:00 2001 From: rogerman Date: Sun, 31 Jul 2016 21:10:14 +0000 Subject: [PATCH] GPU: - Fix compiling issue with non-SSE2. (Regression from r5512.) --- desmume/src/GPU.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/desmume/src/GPU.cpp b/desmume/src/GPU.cpp index eb2fced24..b83f99991 100644 --- a/desmume/src/GPU.cpp +++ b/desmume/src/GPU.cpp @@ -2666,12 +2666,12 @@ void GPUEngineBase::_RenderPixelsCustom(GPUEngineCompositorInfo &compState) { u16 tmpColor = (this->_bgLayerIndex[x] == 0) ? 0xFFFF : this->_bgLayerColor[x] & 0x7FFF; - if (!this->_mosaicWidthBG[x].begin || !this->_mosaicHeightBG[lineIndex].begin) + if (!this->_mosaicWidthBG[x].begin || !this->_mosaicHeightBG[compState.lineIndexNative].begin) { - tmpColor = this->_mosaicColors.bg[LAYERID][this->_mosaicWidthBG[x].trunc]; + tmpColor = this->_mosaicColors.bg[compState.selectedLayerID][this->_mosaicWidthBG[x].trunc]; } - this->_mosaicColors.bg[LAYERID][x] = tmpColor; + this->_mosaicColors.bg[compState.selectedLayerID][x] = tmpColor; if (tmpColor == 0xFFFF) {