There was an error while loading. Please reload this page.
1 parent 123d592 commit 258adeeCopy full SHA for 258adee
1 file changed
Core/GameEngineDevice/Source/W3DDevice/GameClient/W3DTreeBuffer.cpp
@@ -169,7 +169,9 @@ int W3DTreeBuffer::W3DTreeTextureClass::update(W3DTreeBuffer* buffer)
169
}
170
Int i, j;
171
for (j = 0; j < tilePixelExtent; j++) {
172
- UnsignedByte* pBGR = pTile->getRGBDataForWidth(tilePixelExtent);
+ UnsignedByte* pTileRGB = pTile->getRGBDataForWidth(tilePixelExtent);
173
+ if (!pTileRGB) continue;
174
+ UnsignedByte* pBGR = pTileRGB;
175
pBGR += (tilePixelExtent - (1 + j)) * TILE_BYTES_PER_PIXEL * tilePixelExtent; // invert to match.
176
Int row = position.y + j;
177
UnsignedByte* pBGRA = ((UnsignedByte*)locked_rect.pBits) +
@@ -1989,4 +1991,8 @@ void W3DTreeBuffer::loadPostProcess()
1989
1991
1990
1992
1993
1994
+
1995
1996
1997
1998
0 commit comments