diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-01-14 02:12:23 +0100 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-02-07 02:20:57 +0100 |
commit | 8b113686712d4418fdd2e5898ee25d8919b118db (patch) | |
tree | 5ac5ac6d299ad574c26ba038ebc4c8b217ef32f8 /src/video_core/renderer_opengl/gl_resource_manager.cpp | |
parent | rasterizer_interface: Add disk cache entry for the rasterizer (diff) | |
download | yuzu-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_resource_manager.cpp')
-rw-r--r-- | src/video_core/renderer_opengl/gl_resource_manager.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/video_core/renderer_opengl/gl_resource_manager.cpp b/src/video_core/renderer_opengl/gl_resource_manager.cpp index 4170cbd3c..bfe666a73 100644 --- a/src/video_core/renderer_opengl/gl_resource_manager.cpp +++ b/src/video_core/renderer_opengl/gl_resource_manager.cpp @@ -71,7 +71,8 @@ void OGLShader::Release() { } void OGLProgram::CreateFromSource(const char* vert_shader, const char* geo_shader, - const char* frag_shader, bool separable_program) { + const char* frag_shader, bool separable_program, + bool hint_retrievable) { OGLShader vert, geo, frag; if (vert_shader) vert.Create(vert_shader, GL_VERTEX_SHADER); @@ -81,7 +82,7 @@ void OGLProgram::CreateFromSource(const char* vert_shader, const char* geo_shade frag.Create(frag_shader, GL_FRAGMENT_SHADER); MICROPROFILE_SCOPE(OpenGL_ResourceCreation); - Create(separable_program, vert.handle, geo.handle, frag.handle); + Create(separable_program, hint_retrievable, vert.handle, geo.handle, frag.handle); } void OGLProgram::Release() { |