Comment out printext256's GL mode fallback code.

This would only hit when polymost_printext256 erred out (mem alloc failure,
glGenTextures failure), i.e. "almost never".

Also, tweak a bound check in polymost_printext256.

git-svn-id: https://svn.eduke32.com/eduke32@2817 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
helixhorned 2012-07-08 21:47:19 +00:00
parent e71c7cc2a8
commit f6c1c125ac
2 changed files with 3 additions and 2 deletions

View file

@ -15725,7 +15725,7 @@ void printext256(int32_t xpos, int32_t ypos, int16_t col, int16_t backcol, const
#ifdef USE_OPENGL
if (!polymost_printext256(xpos,ypos,col,backcol,name,fontsize)) return;
# if 0
if (rendmode >= 3 && qsetmode == 200)
{
int32_t xx, yy;
@ -15790,6 +15790,7 @@ void printext256(int32_t xpos, int32_t ypos, int16_t col, int16_t backcol, const
return;
}
# endif
#endif
begindrawing(); //{{{

View file

@ -6089,7 +6089,7 @@ int32_t polymost_printext256(int32_t xpos, int32_t ypos, int16_t col, int16_t ba
GLfloat tx, ty, txc, tyc;
int32_t c;
palette_t p,b;
int32_t arbackcol = backcol >= 0 ? backcol : 0;
int32_t arbackcol = (unsigned)backcol < 256 ? backcol : 0;
// FIXME?
if (col < 0)