fix regarding last commit

This commit is contained in:
scrawl 2012-03-02 18:50:55 +01:00
parent 0d4e3b8e75
commit 461ec9f3d6

View file

@ -550,7 +550,7 @@ namespace MWRender
const unsigned char b = colours[colourOffset + 2];
//as is the case elsewhere we need to flip the y
const size_t imageOffset = (size - 1 - y)*size*3 + x*3;
const size_t imageOffset = (size - 1 - y)*size*4 + x*4;
pDest[imageOffset + 0] = b;
pDest[imageOffset + 1] = g;
pDest[imageOffset + 2] = r;