1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-04 10:03:36 +00:00

Fix DepthBufferToRDRAM::CopyToRDRAM - limit max value by 0xfffc.

This commit is contained in:
Sergey Lipskiy 2014-10-19 12:11:53 +07:00
parent d515c5ac34
commit c3a8148d0e

View File

@ -764,7 +764,7 @@ void DepthBufferToRDRAM::CopyToRDRAM( u32 address) {
for (u32 y = 0; y < VI.height; ++y) {
for (u32 x = 0; x < VI.width; ++x) {
col = ptr_src[x + (VI.height - y - 1)*VI.width];
col = min((u16)0xfffc, ptr_src[x + (VI.height - y - 1)*VI.width]);
ptr_dst[(x + y*VI.width)^1] = col;
}
}