Linux/GCC compat: wchar_t size fix for glCallLists

This was SVN commit r714.
This commit is contained in:
Simon Brenner 2004-07-11 20:29:34 +00:00
parent c1e55c3824
commit 14aa03f3b0

View File

@ -1,5 +1,5 @@
/*
$Id: unifont.cpp,v 1.4 2004/06/25 22:19:19 janwas Exp $
$Id: unifont.cpp,v 1.5 2004/07/11 20:29:34 olsner Exp $
Unicode OpenGL texture font
@ -185,5 +185,5 @@ void glwprintf(const wchar_t* fmt, ...)
return;
// Execute all the display lists
glCallLists((GLsizei)len, GL_UNSIGNED_SHORT, buf);
glCallLists((GLsizei)len, sizeof(wchar_t)==4?GL_INT:GL_UNSIGNED_SHORT, buf);
}