mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-11 18:50:46 +00:00
- 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:
parent
4ea61f37fb
commit
ab3811bac0
2 changed files with 1 additions and 18 deletions
|
@ -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)
|
||||
|
|
|
@ -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.
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue