mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-04 10:03:36 +00:00
Revert "Increase only y coordinate of rect in COPY or FILL mode."
because it causes regression in Mischief Makers.
This reverts commit 143a68bc07
.
This commit is contained in:
parent
9d8ef24777
commit
ff67350c8c
|
@ -740,7 +740,10 @@ void gDPFillRDRAM(u32 address, s32 ulx, s32 uly, s32 lrx, s32 lry, u32 width, u3
|
||||||
void gDPFillRectangle( s32 ulx, s32 uly, s32 lrx, s32 lry )
|
void gDPFillRectangle( s32 ulx, s32 uly, s32 lrx, s32 lry )
|
||||||
{
|
{
|
||||||
OGLRender & render = video().getRender();
|
OGLRender & render = video().getRender();
|
||||||
if (gDP.otherMode.cycleType == G_CYC_FILL || lry == uly)
|
if (gDP.otherMode.cycleType == G_CYC_FILL) {
|
||||||
|
++lrx;
|
||||||
|
++lry;
|
||||||
|
} else if (lry == uly)
|
||||||
++lry;
|
++lry;
|
||||||
|
|
||||||
if (gDP.depthImageAddress == gDP.colorImage.address) {
|
if (gDP.depthImageAddress == gDP.colorImage.address) {
|
||||||
|
@ -823,6 +826,7 @@ void gDPTextureRectangle( f32 ulx, f32 uly, f32 lrx, f32 lry, s32 tile, f32 s, f
|
||||||
{
|
{
|
||||||
if (gDP.otherMode.cycleType == G_CYC_COPY) {
|
if (gDP.otherMode.cycleType == G_CYC_COPY) {
|
||||||
dsdx = 1.0f;
|
dsdx = 1.0f;
|
||||||
|
lrx += 1.0f;
|
||||||
lry += 1.0f;
|
lry += 1.0f;
|
||||||
}
|
}
|
||||||
lry = max(lry, uly + 1.0f);
|
lry = max(lry, uly + 1.0f);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user