diff options
| author | Stenzek <stenzek@gmail.com> | 2019-04-20 23:39:54 +1000 |
|---|---|---|
| committer | Stenzek <stenzek@gmail.com> | 2019-04-21 14:28:14 +1000 |
| commit | 5c95dc61fcc11126694bfb8c963dfe418bdaa692 (patch) | |
| tree | 9cf08222eb36b96a6447bd274a442f3d10430b1b /Source/Core/VideoBackends/OGL/ProgramShaderCache.h | |
| parent | bbd1ae16db4932e4fb024d6feccb01bc52ed1d87 (diff) | |
OGL: Store shader source in OGLShader
So it can be dumped with info log when linking fails.
Diffstat (limited to 'Source/Core/VideoBackends/OGL/ProgramShaderCache.h')
| -rw-r--r-- | Source/Core/VideoBackends/OGL/ProgramShaderCache.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/VideoBackends/OGL/ProgramShaderCache.h b/Source/Core/VideoBackends/OGL/ProgramShaderCache.h index 06cabcc689..4aeb40a6c9 100644 --- a/Source/Core/VideoBackends/OGL/ProgramShaderCache.h +++ b/Source/Core/VideoBackends/OGL/ProgramShaderCache.h @@ -77,8 +77,8 @@ public: static bool CompileComputeShader(SHADER& shader, const std::string& code); static GLuint CompileSingleShader(GLenum type, const std::string& code); static bool CheckShaderCompileResult(GLuint id, GLenum type, const std::string& code); - static bool CheckProgramLinkResult(GLuint id, const std::string& vcode, const std::string& pcode, - const std::string& gcode); + static bool CheckProgramLinkResult(GLuint id, const std::string* vcode, const std::string* pcode, + const std::string* gcode); static StreamBuffer* GetUniformBuffer(); static u32 GetUniformBufferAlignment(); static void UploadConstants(); |
