1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-01-07 04:19:02 +00:00

fixes to make the Emscripten web version compile correctly

This commit is contained in:
Zeno Rogue
2017-08-13 20:49:38 +02:00
parent 6fb608bb2b
commit 7c82c3e5a3
10 changed files with 287 additions and 348 deletions

View File

@@ -362,7 +362,11 @@ void init_glfont(int size) {
#endif
// glListBase(0);
#if CAP_TABFONT
resetTabFont();
#endif
for(int ch=1;ch<128+NUMEXTRA;ch++) {
if(ch<32) continue;
@@ -388,6 +392,12 @@ void init_glfont(int size) {
#endif
}
#if CAP_CREATEFONT
printf("#define NUMEXTRA %d\n", NUMEXTRA);
#define DEMACRO(x) #x
printf("#define NATCHARS " DEMACRO(NATCHARS) "\n");
#endif
//printf("init size=%d ok\n", size);
GLERR("initfont");
}