- fixed recursion in Dim functions. When the main worker function was renamed to DoDim the Super calls were not fixed for it.

This commit is contained in:
Christoph Oelckers 2017-05-06 10:43:48 +02:00
parent 5c1dc900e3
commit 567c21cdeb
2 changed files with 2 additions and 2 deletions

View file

@ -2544,7 +2544,7 @@ void OpenGLSWFrameBuffer::DoDim(PalEntry color, float amount, int x1, int y1, in
} }
if (In2D < 2) if (In2D < 2)
{ {
Super::Dim(color, amount, x1, y1, w, h); Super::DoDim(color, amount, x1, y1, w, h);
return; return;
} }
if (!InScene) if (!InScene)

View file

@ -2671,7 +2671,7 @@ void D3DFB::DoDim (PalEntry color, float amount, int x1, int y1, int w, int h)
} }
if (In2D < 2) if (In2D < 2)
{ {
Super::Dim(color, amount, x1, y1, w, h); Super::DoDim(color, amount, x1, y1, w, h);
return; return;
} }
if (!InScene) if (!InScene)