mirror of
https://github.com/XProger/OpenLara.git
synced 2025-02-24 15:32:30 +01:00
fix cutscenes loading for Web version
This commit is contained in:
parent
ccc16ccefd
commit
05f2743aaf
@ -719,6 +719,7 @@ namespace Core {
|
||||
delete[] noiseData;
|
||||
}
|
||||
|
||||
perlinTex = NULL;
|
||||
if (support.tex3D) {
|
||||
Stream::cacheRead(PERLIN_TEX_NAME, readPerlinAsync);
|
||||
}
|
||||
|
@ -681,6 +681,9 @@ struct Inventory {
|
||||
}
|
||||
|
||||
void init(bool playLogo, bool playVideo) {
|
||||
active = false;
|
||||
phaseRing = 0.0f;
|
||||
|
||||
this->playLogo = playLogo;
|
||||
this->playVideo = playVideo;
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user