From bbc292c21000ee3532c1fb4e955dc03951a6e2f6 Mon Sep 17 00:00:00 2001 From: degasus Date: Wed, 13 Feb 2013 13:12:19 +0100 Subject: merge Vertex and PixelShaderCache into ProgramShaderCache this is the first step, uniform handling is still missing --- Source/Plugins/Plugin_VideoOGL/Src/PostProcessing.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'Source/Plugins/Plugin_VideoOGL/Src/PostProcessing.cpp') diff --git a/Source/Plugins/Plugin_VideoOGL/Src/PostProcessing.cpp b/Source/Plugins/Plugin_VideoOGL/Src/PostProcessing.cpp index 531af03aa2..c69932a355 100644 --- a/Source/Plugins/Plugin_VideoOGL/Src/PostProcessing.cpp +++ b/Source/Plugins/Plugin_VideoOGL/Src/PostProcessing.cpp @@ -20,7 +20,7 @@ #include "VideoConfig.h" #include "GLUtil.h" #include "PostProcessing.h" -#include "PixelShaderCache.h" +#include "ProgramShaderCache.h" namespace OGL { @@ -29,7 +29,7 @@ namespace PostProcessing { static std::string s_currentShader; -static FRAGMENTSHADER s_shader; +static SHADER s_shader; void Init() { @@ -63,10 +63,10 @@ bool ApplyShader() std::string code; if (File::ReadFileToString(true, s_currentShader.c_str(), code)) { - if (!PixelShaderCache::CompilePixelShader(s_shader, code.c_str())) - { - ERROR_LOG(VIDEO, "Failed to compile post-processing shader %s", s_currentShader.c_str()); - } + //if (!ProgramShaderCache::CompileShader(s_shader, "#version130\n...", code.c_str())) + //{ + // ERROR_LOG(VIDEO, "Failed to compile post-processing shader %s", s_currentShader.c_str()); + //} } else { @@ -78,7 +78,7 @@ bool ApplyShader() // TODO: Convert PP shaders to GLSL if (s_shader.glprogid != 0) { - // SetBothShaders(s_shader, 0); + s_shader.Bind(); return true; } else -- cgit v1.2.3