* add needed libui functions under Windows, even if they don't do a whole lot

* fix ass-stupid fog bug
This commit is contained in:
Arisotura
2019-05-31 21:37:30 +02:00
parent 65ccf2a717
commit f6814e02c0
3 changed files with 27 additions and 6 deletions

View File

@ -187,7 +187,7 @@ void SetupDefaultTexParams(GLuint tex)
bool Init()
{
GLint uni_id;
glEnable(GL_DEPTH_TEST);
glEnable(GL_STENCIL_TEST);
@ -1043,9 +1043,6 @@ void RenderFrame()
{
if (RenderPolygonRAM[i]->Degenerate) continue;
// zog.
//if (RenderPolygonRAM[i]->YBottom <= 96 || RenderPolygonRAM[i]->YTop >= 144) continue;
SetupPolygon(&PolygonList[npolys], RenderPolygonRAM[i]);
if (firsttrans < 0 && RenderPolygonRAM[i]->Translucent)
firsttrans = npolys;