mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +00:00
Fix the flickering in the tile selector with lazy hightile loading on
(lazy_tileselector=1 in mapster32.cfg). We're drawing tiles one by one, so glDrawBuffer(GL_FRONT_AND_BACK) is our friend. git-svn-id: https://svn.eduke32.com/eduke32@2115 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
997b3426b5
commit
21274b317f
1 changed files with 12 additions and 0 deletions
|
@ -4205,6 +4205,9 @@ static int32_t DrawTiles(int32_t iTopLeft, int32_t iSelected, int32_t nXTiles, i
|
|||
setpolymost2dview();
|
||||
#ifdef USE_OPENGL
|
||||
bglEnable(GL_TEXTURE_2D);
|
||||
|
||||
if (rendmode >= 3 && g_lazy_tileselector)
|
||||
bglDrawBuffer(GL_FRONT_AND_BACK);
|
||||
#endif
|
||||
clearview(0);
|
||||
|
||||
|
@ -4272,6 +4275,10 @@ restart:
|
|||
{
|
||||
enddrawing();
|
||||
showframe(1);
|
||||
#ifdef USE_OPENGL
|
||||
if (rendmode >= 3 && g_lazy_tileselector)
|
||||
bglDrawBuffer(GL_BACK);
|
||||
#endif
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
@ -4300,6 +4307,11 @@ restart:
|
|||
enddrawing();
|
||||
showframe(1);
|
||||
|
||||
#ifdef USE_OPENGL
|
||||
if (rendmode >= 3 && g_lazy_tileselector)
|
||||
bglDrawBuffer(GL_BACK);
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue