diff options
| author | Connor McLaughlin <stenzek@gmail.com> | 2019-04-22 12:50:22 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-04-22 12:50:22 +1000 |
| commit | 59c0e51f5b84874dca2cbecfe750e3f1de66405d (patch) | |
| tree | 5a155558fc1b75fa629783c3a4a1e465858f221f /Source/Core/VideoBackends/OGL/ProgramShaderCache.h | |
| parent | 93be178f28a55ea1bb3fa796b32eecae482a53d1 (diff) | |
| parent | 356ebdf5098a24a70c04392ef7bcad7b762affbe (diff) | |
Merge pull request #8000 from stenzek/more-videocommon-cleanup
Additional cleanup/fixes from VideoCommon merge
Diffstat (limited to 'Source/Core/VideoBackends/OGL/ProgramShaderCache.h')
| -rw-r--r-- | Source/Core/VideoBackends/OGL/ProgramShaderCache.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Source/Core/VideoBackends/OGL/ProgramShaderCache.h b/Source/Core/VideoBackends/OGL/ProgramShaderCache.h index b7e4dd6d00..bc93445c55 100644 --- a/Source/Core/VideoBackends/OGL/ProgramShaderCache.h +++ b/Source/Core/VideoBackends/OGL/ProgramShaderCache.h @@ -72,15 +72,14 @@ public: static void BindVertexFormat(const GLVertexFormat* vertex_format); static bool IsValidVertexFormatBound(); static void InvalidateVertexFormat(); + static void InvalidateVertexFormatIfBound(GLuint vao); static void InvalidateLastProgram(); - static bool CompileShader(SHADER& shader, const std::string& vcode, const std::string& pcode, - const std::string& gcode = ""); 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(); |
