1
0
mirror of https://github.com/XProger/OpenLara.git synced 2025-08-11 15:45:05 +02:00

fix compilation (Web)

This commit is contained in:
XProger
2019-02-23 08:49:18 +03:00
parent 5b5457f606
commit 122d336503

View File

@@ -1390,8 +1390,11 @@ struct Level : IGame {
//dumpGlyphs(); //dumpGlyphs();
UI::patchGlyphs(level); UI::patchGlyphs(level);
uint32 glyphsW, glyphsH; {
glyphsCyr = Texture::LoadPNG(Stream(NULL, GLYPH_CYR, size_GLYPH_CYR), glyphsW, glyphsH); uint32 glyphsW, glyphsH;
Stream stream(NULL, GLYPH_CYR, size_GLYPH_CYR);
glyphsCyr = Texture::LoadPNG(stream, glyphsW, glyphsH);
}
// repack texture tiles // repack texture tiles
Atlas *tiles = new Atlas(level.objectTexturesCount + level.spriteTexturesCount + UI::BAR_MAX, this, fillCallback); Atlas *tiles = new Atlas(level.objectTexturesCount + level.spriteTexturesCount + UI::BAR_MAX, this, fillCallback);