mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Hide shaders we can't run on GLES2
This commit is contained in:
1 parent
6619d0a7ac
commit
3a787f46a5
2 files changed
+9
No files matched your search
@@ -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);
|
||||
}
|
||||
|
||||
@@ -45,3 +45,4 @@ Name=Spline36 Upscaler
|
||||
Fragment=upscale_spline36.fsh
|
||||
Vertex=upscale_spline36.vsh
|
||||
OutputResolution=True
|
||||
RequiresIntSupport=True
|
||||
Reference in new issue
Block a user