Skip to content

Commit

Permalink
Force a nullptr check when loading the OpenGL shader folder
Browse files Browse the repository at this point in the history
  • Loading branch information
Zegeri authored and eagleivg committed Oct 4, 2018
1 parent 233bb1e commit d33ddea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Layers/xrRenderPC_GL/glResourceManager_Scripting.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ void CResourceManager::LS_Load()
// load shaders
const char* shaderPath = RImplementation.getShaderPath();
xr_vector<char*>* folder = FS.file_list_open("$game_shaders$", shaderPath, FS_ListFiles | FS_RootOnly);
VERIFY (folder);
R_ASSERT3(folder, "Shader folder not found: ", shaderPath);
for (u32 it = 0; it < folder->size(); it++)
{
string_path namesp, fn;
Expand Down

0 comments on commit d33ddea

Please sign in to comment.