From 8ce3a4aa7014c378d4121979f3fd10b9886d38bc Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sat, 26 Dec 2015 16:00:23 -0500 Subject: ShaderGeneration: Get rid of static buffers --- Source/Core/VideoBackends/OGL/ProgramShaderCache.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source/Core/VideoBackends/OGL/ProgramShaderCache.h') diff --git a/Source/Core/VideoBackends/OGL/ProgramShaderCache.h b/Source/Core/VideoBackends/OGL/ProgramShaderCache.h index 32e84c07af..d20da70d2f 100644 --- a/Source/Core/VideoBackends/OGL/ProgramShaderCache.h +++ b/Source/Core/VideoBackends/OGL/ProgramShaderCache.h @@ -91,8 +91,8 @@ public: static SHADER* SetShader(DSTALPHA_MODE dstAlphaMode, u32 primitive_type); static void GetShaderId(SHADERUID *uid, DSTALPHA_MODE dstAlphaMode, u32 primitive_type); - static bool CompileShader(SHADER &shader, const char* vcode, const char* pcode, const char* gcode = nullptr); - static GLuint CompileSingleShader(GLuint type, const char *code); + static bool CompileShader(SHADER &shader, const std::string& vcode, const std::string& pcode, const std::string& gcode = ""); + static GLuint CompileSingleShader(GLuint type, const std::string& code); static void UploadConstants(); static void Init(); -- cgit v1.2.3