glprintf: ignore empty strings (avoids bc warning)
This was SVN commit r459.
This commit is contained in:
parent
a0a9276b21
commit
25d2a41c64
@ -244,5 +244,10 @@ void glprintf(const char* fmt, ...)
|
|||||||
vsnprintf(buf, sizeof(buf)-1, fmt, args);
|
vsnprintf(buf, sizeof(buf)-1, fmt, args);
|
||||||
va_end(args);
|
va_end(args);
|
||||||
|
|
||||||
glCallLists((GLsizei)strlen(buf), GL_UNSIGNED_BYTE, buf);
|
// avoid BoundsChecker warning
|
||||||
|
const size_t len = strlen(buf);
|
||||||
|
if(!len)
|
||||||
|
return;
|
||||||
|
|
||||||
|
glCallLists((GLsizei)len, GL_UNSIGNED_BYTE, buf);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user