summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_opengl/gl_shader_util.h
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2019-01-14 02:12:23 +0100
committerReinUsesLisp <reinuseslisp@airmail.cc>2019-02-07 02:20:57 +0100
commit8b113686712d4418fdd2e5898ee25d8919b118db (patch)
tree5ac5ac6d299ad574c26ba038ebc4c8b217ef32f8 /src/video_core/renderer_opengl/gl_shader_util.h
parentrasterizer_interface: Add disk cache entry for the rasterizer (diff)
downloadyuzu-8b113686712d4418fdd2e5898ee25d8919b118db.tar
yuzu-8b113686712d4418fdd2e5898ee25d8919b118db.tar.gz
yuzu-8b113686712d4418fdd2e5898ee25d8919b118db.tar.bz2
yuzu-8b113686712d4418fdd2e5898ee25d8919b118db.tar.lz
yuzu-8b113686712d4418fdd2e5898ee25d8919b118db.tar.xz
yuzu-8b113686712d4418fdd2e5898ee25d8919b118db.tar.zst
yuzu-8b113686712d4418fdd2e5898ee25d8919b118db.zip
Diffstat (limited to 'src/video_core/renderer_opengl/gl_shader_util.h')
-rw-r--r--src/video_core/renderer_opengl/gl_shader_util.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_util.h b/src/video_core/renderer_opengl/gl_shader_util.h
index 285594f50..03b7548c2 100644
--- a/src/video_core/renderer_opengl/gl_shader_util.h
+++ b/src/video_core/renderer_opengl/gl_shader_util.h
@@ -47,7 +47,7 @@ GLuint LoadShader(const char* source, GLenum type);
* @returns Handle of the newly created OpenGL program object
*/
template <typename... T>
-GLuint LoadProgram(bool separable_program, T... shaders) {
+GLuint LoadProgram(bool separable_program, bool hint_retrievable, T... shaders) {
// Link the program
LOG_DEBUG(Render_OpenGL, "Linking program...");
@@ -58,6 +58,9 @@ GLuint LoadProgram(bool separable_program, T... shaders) {
if (separable_program) {
glProgramParameteri(program_id, GL_PROGRAM_SEPARABLE, GL_TRUE);
}
+ if (hint_retrievable) {
+ glProgramParameteri(program_id, GL_PROGRAM_BINARY_RETRIEVABLE_HINT, GL_TRUE);
+ }
glLinkProgram(program_id);