mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 03:00:46 +00:00
Handle a concern kludged by SlackBuilds (used by Slackware Linux and NetBSD) where a warning in texcache.c spams the log.
git-svn-id: https://svn.eduke32.com/eduke32@4546 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
1f68d2beb6
commit
a5fb5f6795
1 changed files with 6 additions and 1 deletions
|
@ -496,6 +496,7 @@ failure:
|
||||||
|
|
||||||
void texcache_writetex(const char *fn, int32_t len, int32_t dameth, char effect, texcacheheader *head)
|
void texcache_writetex(const char *fn, int32_t len, int32_t dameth, char effect, texcacheheader *head)
|
||||||
{
|
{
|
||||||
|
static GLint glGetTexLevelParameterivOK = GL_TRUE;
|
||||||
char cachefn[BMAX_PATH];
|
char cachefn[BMAX_PATH];
|
||||||
char *pic = NULL, *packbuf = NULL;
|
char *pic = NULL, *packbuf = NULL;
|
||||||
void *midbuf = NULL;
|
void *midbuf = NULL;
|
||||||
|
@ -510,7 +511,11 @@ void texcache_writetex(const char *fn, int32_t len, int32_t dameth, char effect,
|
||||||
bglGetTexLevelParameteriv(GL_TEXTURE_2D, 0, GL_TEXTURE_COMPRESSED_ARB, &gi);
|
bglGetTexLevelParameteriv(GL_TEXTURE_2D, 0, GL_TEXTURE_COMPRESSED_ARB, &gi);
|
||||||
if (gi != GL_TRUE)
|
if (gi != GL_TRUE)
|
||||||
{
|
{
|
||||||
OSD_Printf("Error: glGetTexLevelParameteriv returned GL_FALSE!\n");
|
if (glGetTexLevelParameterivOK == GL_TRUE)
|
||||||
|
{
|
||||||
|
OSD_Printf("Error: glGetTexLevelParameteriv returned GL_FALSE!\n");
|
||||||
|
glGetTexLevelParameterivOK = GL_FALSE;
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue