From 981ffb5090352e60bce78e2ac02471054e8876d4 Mon Sep 17 00:00:00 2001 From: Vitor Kiguchi Date: Mon, 5 Apr 2021 23:41:07 -0300 Subject: [PATCH] shader_disk_cache: warn the user when ARB_get_program_binary is not supported. --- src/video_core/renderer_opengl/gl_shader_disk_cache.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/video_core/renderer_opengl/gl_shader_disk_cache.cpp b/src/video_core/renderer_opengl/gl_shader_disk_cache.cpp index d9f516b506..58730d6ee7 100644 --- a/src/video_core/renderer_opengl/gl_shader_disk_cache.cpp +++ b/src/video_core/renderer_opengl/gl_shader_disk_cache.cpp @@ -365,6 +365,10 @@ void ShaderDiskCache::SaveDecompiled(u64 unique_identifier, void ShaderDiskCache::SaveDump(u64 unique_identifier, GLuint program) { if (!IsUsable()) return; + if (!GLAD_GL_ARB_get_program_binary) { + LOG_WARNING(Render_OpenGL, "ARB_get_program_binary is not supported. Problems may occur if " + "use_disk_shader_cache is ON."); + } GLint binary_length{}; glGetProgramiv(program, GL_PROGRAM_BINARY_LENGTH, &binary_length);