This commit is contained in:
Themaister 2011-03-29 19:13:14 +02:00
parent 3455f83fa7
commit 647db4d5de

View File

@ -296,6 +296,8 @@ static void init_shader_dir(void)
return; return;
g_extern.shader_dir.elems = dir_list_new(g_settings.video.shader_dir, ".shader"); g_extern.shader_dir.elems = dir_list_new(g_settings.video.shader_dir, ".shader");
g_extern.shader_dir.size = 0;
g_extern.shader_dir.ptr = 0;
if (g_extern.shader_dir.elems) if (g_extern.shader_dir.elems)
{ {
while (g_extern.shader_dir.elems[g_extern.shader_dir.size]) while (g_extern.shader_dir.elems[g_extern.shader_dir.size])