mirror of
https://github.com/RetroDECK/Supermodel.git
synced 2025-03-06 14:27:44 +00:00
fix array out of bounds
This commit is contained in:
parent
4702fef33e
commit
a772dd32fc
|
@ -432,8 +432,8 @@ void CReal3D::StoreTexture(unsigned level, unsigned xPos, unsigned yPos, unsigne
|
|||
byte2 = texData[decode8x2[(yy^1) * tileX + ((xx + 1)^1)] / 2] & 0xFF;
|
||||
}
|
||||
if (tileX == 1) {
|
||||
byte1 = texData[decode8x1[(yy^1) * tileX + ((xx + 0)^1)] / 2] >> 8;
|
||||
byte2 = texData[decode8x1[(yy^1) * tileX + ((xx + 0)^1)] / 2] & 0xFF;
|
||||
byte1 = texData[decode8x1[(yy^1)] / 2] >> 8;
|
||||
byte2 = texData[decode8x1[(yy^1)] / 2] & 0xFF;
|
||||
}
|
||||
if (m_gpuMultiThreaded)
|
||||
MARK_DIRTY(textureRAMDirty, destOffset * 2);
|
||||
|
|
Loading…
Reference in a new issue