From 33acec826312df058bf3dceb05079540d270efd3 Mon Sep 17 00:00:00 2001 From: Henrik Rydgard Date: Sat, 12 Oct 2013 02:13:51 +0200 Subject: [PATCH] Actually, don't ignore the first section of postshader ini files - if there's no comment there, it won't exist. --- GPU/Common/PostShader.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/GPU/Common/PostShader.cpp b/GPU/Common/PostShader.cpp index 8a1f623b5..0149f9aab 100644 --- a/GPU/Common/PostShader.cpp +++ b/GPU/Common/PostShader.cpp @@ -67,8 +67,7 @@ void LoadPostShaderInfo(std::vector directories) { continue; // Alright, let's loop through the sections and see if any is a shader. - // Ignore the first section (which only consists of the comments before the first real one). - for (size_t i = 1; i < ini.Sections().size(); i++) { + for (size_t i = 0; i < ini.Sections().size(); i++) { IniFile::Section §ion = ini.Sections()[i]; if (section.Exists("Fragment") && section.Exists("Vertex")) { // Valid shader!