diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-05-18 03:32:49 +0200 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-05-19 23:00:04 +0200 |
commit | 420cc13248350ef5c2d19e0b961cb4185cd16a8a (patch) | |
tree | 7c20805090bbdfd42de380644bb719122fbc85a8 /src/video_core/renderer_opengl/gl_resource_manager.cpp | |
parent | yuzu: Add frontend settings for assembly shaders (diff) | |
download | yuzu-420cc13248350ef5c2d19e0b961cb4185cd16a8a.tar yuzu-420cc13248350ef5c2d19e0b961cb4185cd16a8a.tar.gz yuzu-420cc13248350ef5c2d19e0b961cb4185cd16a8a.tar.bz2 yuzu-420cc13248350ef5c2d19e0b961cb4185cd16a8a.tar.lz yuzu-420cc13248350ef5c2d19e0b961cb4185cd16a8a.tar.xz yuzu-420cc13248350ef5c2d19e0b961cb4185cd16a8a.tar.zst yuzu-420cc13248350ef5c2d19e0b961cb4185cd16a8a.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 | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/video_core/renderer_opengl/gl_resource_manager.cpp b/src/video_core/renderer_opengl/gl_resource_manager.cpp index 97803d480..a787e27d2 100644 --- a/src/video_core/renderer_opengl/gl_resource_manager.cpp +++ b/src/video_core/renderer_opengl/gl_resource_manager.cpp @@ -125,6 +125,15 @@ void OGLProgram::Release() { handle = 0; } +void OGLAssemblyProgram::Release() { + if (handle == 0) { + return; + } + MICROPROFILE_SCOPE(OpenGL_ResourceDeletion); + glDeleteProgramsARB(1, &handle); + handle = 0; +} + void OGLPipeline::Create() { if (handle != 0) return; |