diff options
Diffstat (limited to 'src/mesa/drivers/windows/gldirect/dx9/gld_texture_dx9.c')
-rw-r--r-- | src/mesa/drivers/windows/gldirect/dx9/gld_texture_dx9.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/drivers/windows/gldirect/dx9/gld_texture_dx9.c b/src/mesa/drivers/windows/gldirect/dx9/gld_texture_dx9.c index ad2f4aab6f..91aa5a5d7b 100644 --- a/src/mesa/drivers/windows/gldirect/dx9/gld_texture_dx9.c +++ b/src/mesa/drivers/windows/gldirect/dx9/gld_texture_dx9.c @@ -1063,7 +1063,7 @@ void gld_ReadPixels_DX9( // We need to flip the data. Yuck. // Perhaps Mesa has a span packer we can use in future... for (i=0; i<height; i++) { - BYTE *pDestRow = (BYTE*)_mesa_image_address(pack, dest, width, height, format, type, 0, i, 0); + BYTE *pDestRow = (BYTE*)_mesa_image_address2d(pack, dest, width, height, format, type, 0, i, 0); BYTE *pSrcRow = (BYTE*)d3dLockedRect.pBits + (d3dLockedRect.Pitch * (height-i-1)); _mesa_transfer_teximage( ctx, @@ -1254,8 +1254,8 @@ void gld_Bitmap_DX9( for (i=0; i<height; i++) { GLubyte byte; pBits = (D3DCOLOR*)((BYTE*)d3dLockedRect.pBits + (i*d3dLockedRect.Pitch)); - src = (const GLubyte *) _mesa_image_address( - &_mesa_native_packing, pTempBitmap, width, height, GL_COLOR_INDEX, GL_BITMAP, + src = (const GLubyte *) _mesa_image_address2d( + &ctx->DefaultPacking, pTempBitmap, width, height, GL_COLOR_INDEX, GL_BITMAP, 0, i, 0); for (j=0; j<(width>>3); j++) { byte = *src++; |