- fixed: The 2D drawer must apply the render state before it finishes.

Otherwise the global state settings will not be reset.
This commit is contained in:
Christoph Oelckers 2020-01-31 22:07:51 +01:00
parent 4ea61f37fb
commit ab3811bac0
2 changed files with 1 additions and 18 deletions

View file

@ -257,23 +257,6 @@ void SetView1()
{
}
void FlushMessageLine()
{
int tileX = tilesiz[nBackgroundPic].x;
int nTileOffset = 0;
int xPos = 0;
while (xPos < xdim)
{
overwritesprite(xPos, 0, nBackgroundPic + nTileOffset, -32, 0, kPalNormal);
nTileOffset = nTileOffset == 0;
xPos += tileX;
}
}
void RefreshBackground()
{
if (screensize <= 0)

View file

@ -214,7 +214,6 @@ void GLInstance::Draw2D(F2DDrawer *drawer)
*/
}
//state.SetScissor(-1, -1, -1, -1);
//state.SetRenderStyle(STYLE_Translucent);
ClearBufferState();
@ -230,6 +229,7 @@ void GLInstance::Draw2D(F2DDrawer *drawer)
EnableMultisampling(true);
SetIdentityMatrix(Matrix_Projection);
matrixArray.Resize(1);
renderState.Apply(polymostShader, lastState); // actually set the desired state before returning.
}