diff options
author | rubidium <rubidium@openttd.org> | 2014-01-13 18:03:35 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2014-01-13 18:03:35 +0000 |
commit | 5b3b533697bd2803452d0ccf4bcc94550970968f (patch) | |
tree | 07ec090b99db373d5cb5404cb979f07b67c751d0 /src/blitter/32bpp_ssse3.cpp | |
parent | 7f6e837b3a5b2efd93fa35ffc0ff7a06d88aeb56 (diff) | |
download | openttd-5b3b533697bd2803452d0ccf4bcc94550970968f.tar.xz |
(svn r26253) -Codechange: remove margin limitation to preserve block type (MJP)
Diffstat (limited to 'src/blitter/32bpp_ssse3.cpp')
-rw-r--r-- | src/blitter/32bpp_ssse3.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/blitter/32bpp_ssse3.cpp b/src/blitter/32bpp_ssse3.cpp index 32f073d45..1d7e0f056 100644 --- a/src/blitter/32bpp_ssse3.cpp +++ b/src/blitter/32bpp_ssse3.cpp @@ -62,6 +62,7 @@ inline void Blitter_32bppSSSE3::Draw(const Blitter::BlitterParams *bp, ZoomLevel if (mode == BM_COLOUR_REMAP) src_mv = src_mv_line; if (read_mode == RM_WITH_MARGIN) { + assert(bt_last == BT_NONE); // or you must ensure block type is preserved src += src_rgba_line[0].data; dst += src_rgba_line[0].data; if (mode == BM_COLOUR_REMAP) src_mv += src_rgba_line[0].data; |