diff --git a/src/kits/opengl/GLRendererRoster.cpp b/src/kits/opengl/GLRendererRoster.cpp index d4778c71aa..c4f5d81472 100644 --- a/src/kits/opengl/GLRendererRoster.cpp +++ b/src/kits/opengl/GLRendererRoster.cpp @@ -148,7 +148,12 @@ GLRendererRoster::AddPath(const char* path) int32 files = 0; entry_ref ref; + BEntry entry; while (directory.GetNextRef(&ref) == B_OK) { + entry.SetTo(&ref); + if (entry.InitCheck() == B_OK && !entry.IsFile()) + continue; + if (CreateRenderer(ref) == B_OK) count++;