cleaned up some redundant file reads and fixed file opening in the movie player.
As a streaming action this cannot borrow the one from the archive.
This commit is contained in:
parent
3e7ec9118f
commit
df3e82d94c
10 changed files with 31 additions and 17 deletions
|
|
@ -89,7 +89,6 @@ void FShaderProgram::Compile(ShaderType type, const char *lumpName, const char *
|
|||
{
|
||||
int lump = fileSystem.CheckNumForFullName(lumpName);
|
||||
if (lump == -1) I_FatalError("Unable to load '%s'", lumpName);
|
||||
auto sp = fileSystem.ReadFile(lump);
|
||||
FString code = GetStringFromLump(lump);
|
||||
|
||||
Compile(type, lumpName, code, defines, maxGlslVersion);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue