Skip to content

Commit d33ddea

Browse files
Zegerieagleivg
authored andcommitted
Force a nullptr check when loading the OpenGL shader folder
1 parent 233bb1e commit d33ddea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Layers/xrRenderPC_GL/glResourceManager_Scripting.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ void CResourceManager::LS_Load()
412412
// load shaders
413413
const char* shaderPath = RImplementation.getShaderPath();
414414
xr_vector<char*>* folder = FS.file_list_open("$game_shaders$", shaderPath, FS_ListFiles | FS_RootOnly);
415-
VERIFY (folder);
415+
R_ASSERT3(folder, "Shader folder not found: ", shaderPath);
416416
for (u32 it = 0; it < folder->size(); it++)
417417
{
418418
string_path namesp, fn;

0 commit comments

Comments
 (0)