Hide shaders we can't run on GLES2

This commit is contained in:
Henrik Rydgard committed 2013-10-23 22:58:21 +02:00
1 parent 6619d0a7ac
commit 3a787f46a5
2 files changed
+9

No files matched your search

+8
View File
@@ -83,6 +83,14 @@ void LoadPostShaderInfo(std::vector<std::string> directories) {
section.Get("Vertex", &temp, "");
info.vertexShaderFile = path + "/" + temp;
section.Get("OutputResolution", &info.outputResolution, false);
#ifdef USING_GLES2
// Let's ignore shaders we can't support. TODO: Check for GLES 3.0
bool requiresIntegerSupport;
section.Get("RequiresIntSupport", &requiresIntegerSupport, false);
if (requiresIntegerSupport)
continue;
#endif
shaderInfo.erase(std::find(shaderInfo.begin(), shaderInfo.end(), info.name), shaderInfo.end());
shaderInfo.push_back(info);
}
+1
View File
@@ -45,3 +45,4 @@ Name=Spline36 Upscaler
Fragment=upscale_spline36.fsh
Vertex=upscale_spline36.vsh
OutputResolution=True
RequiresIntSupport=True