1
0
mirror of https://github.com/XProger/OpenLara.git synced 2025-02-24 07:22:58 +01:00

fix cutscenes loading for Web version

This commit is contained in:
XProger 2019-02-18 23:01:27 +03:00
parent ccc16ccefd
commit 05f2743aaf
3 changed files with 11 additions and 0 deletions

View File

@ -719,6 +719,7 @@ namespace Core {
delete[] noiseData;
}
perlinTex = NULL;
if (support.tex3D) {
Stream::cacheRead(PERLIN_TEX_NAME, readPerlinAsync);
}

View File

@ -681,6 +681,9 @@ struct Inventory {
}
void init(bool playLogo, bool playVideo) {
active = false;
phaseRing = 0.0f;
this->playLogo = playLogo;
this->playVideo = playVideo;

View File

@ -1536,6 +1536,13 @@ struct Level : IGame {
}
}
if (type != Shader::DEFAULT && !Core::perlinTex) {
type = Shader::DEFAULT;
if (level.version & TR::VER_TR1) {
return;
}
}
Core::Pass pass = Core::pass;
mat4 mView = Core::mView;
mat4 mProj = Core::mProj;