mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-07 03:13:49 +00:00
Fix DepthBufferToRDRAM::CopyToRDRAM - limit max value by 0xfffc.
This commit is contained in:
parent
d515c5ac34
commit
c3a8148d0e
|
@ -764,7 +764,7 @@ void DepthBufferToRDRAM::CopyToRDRAM( u32 address) {
|
||||||
|
|
||||||
for (u32 y = 0; y < VI.height; ++y) {
|
for (u32 y = 0; y < VI.height; ++y) {
|
||||||
for (u32 x = 0; x < VI.width; ++x) {
|
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;
|
ptr_dst[(x + y*VI.width)^1] = col;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user