diff options
Diffstat (limited to 'src/native/d3d/D3dUtil.cpp')
-rw-r--r-- | src/native/d3d/D3dUtil.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/native/d3d/D3dUtil.cpp b/src/native/d3d/D3dUtil.cpp index 4c2ad9a..0b9cd7c 100644 --- a/src/native/d3d/D3dUtil.cpp +++ b/src/native/d3d/D3dUtil.cpp @@ -1034,6 +1034,7 @@ void copyDataFromSurface(jint imageFormat, for (int j=xoffset; j < xlimit; j++) { b1 = *src++; b2 = *src++; + mask = ((b2 << 8) | b1); *dst++ = (byte) (mask & 0xff); *dst++ = (byte) ((mask >> 8) & 0xff); } |