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

Remove gamma correction code from gDPFillRectangle.

Forgot to remove it when gamma correction was moved to post-processor.
Fixed green background in Superman.
This commit is contained in:
Sergey Lipskiy 2016-02-06 00:09:00 +06:00
parent c34e00b9df
commit 170a072deb

View File

@ -765,11 +765,6 @@ void gDPFillRectangle( s32 ulx, s32 uly, s32 lrx, s32 lry )
if (gDP.otherMode.cycleType == G_CYC_FILL) {
if ((ulx == 0) && (uly == 0) && (lrx == gDP.scissor.lrx) && (lry == gDP.scissor.lry)) {
gDPFillRDRAM(gDP.colorImage.address, ulx, uly, lrx, lry, gDP.colorImage.width, gDP.colorImage.size, gDP.fillColor.color);
if ((*REG.VI_STATUS & 8) != 0) {
fillColor[0] = sqrtf(fillColor[0]);
fillColor[1] = sqrtf(fillColor[1]);
fillColor[2] = sqrtf(fillColor[2]);
}
render.clearColorBuffer(fillColor);
return;
}