Fix stride calculation

This commit is contained in:
baldurk committed 2014-08-24 01:00:22 +01:00
1 parent 22c8f749f8
commit e144bde4d4
1 file changed
+1 -1
+1 -1
View File
@@ -4064,7 +4064,7 @@ vector<PixelModification> D3D11DebugManager::PixelHistory(uint32_t frameID, vect
for(int p=0; p < 2; p++)
{
byte *data = rowdata + fmt.compCount * fmt.compByteWidth * (storex + p) * pixstoreStride;
byte *data = rowdata + fmt.compCount * fmt.compByteWidth * (storex * pixstoreStride + p);
ModificationValue *val = (p == 0 ? &mod.preMod : &mod.postMod);