summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorameerj <52414509+ameerj@users.noreply.github.com>2021-06-11 08:50:30 +0200
committerameerj <52414509+ameerj@users.noreply.github.com>2021-07-23 03:51:38 +0200
commite81c73a8748ccfcde56acfee5630116c3950e479 (patch)
tree617a67d3512b228dbaa40b710700dfb79f7bc7bc /src/video_core
parentglsl: Remove Signed Integer variables (diff)
downloadyuzu-e81c73a8748ccfcde56acfee5630116c3950e479.tar
yuzu-e81c73a8748ccfcde56acfee5630116c3950e479.tar.gz
yuzu-e81c73a8748ccfcde56acfee5630116c3950e479.tar.bz2
yuzu-e81c73a8748ccfcde56acfee5630116c3950e479.tar.lz
yuzu-e81c73a8748ccfcde56acfee5630116c3950e479.tar.xz
yuzu-e81c73a8748ccfcde56acfee5630116c3950e479.tar.zst
yuzu-e81c73a8748ccfcde56acfee5630116c3950e479.zip
Diffstat (limited to '')
-rw-r--r--src/video_core/renderer_opengl/gl_shader_util.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_util.cpp b/src/video_core/renderer_opengl/gl_shader_util.cpp
index ac6f33e34..5109985f1 100644
--- a/src/video_core/renderer_opengl/gl_shader_util.cpp
+++ b/src/video_core/renderer_opengl/gl_shader_util.cpp
@@ -13,7 +13,7 @@
namespace OpenGL {
-static void LogShader(GLuint shader, std::optional<std::string_view> code = {}) {
+static void LogShader(GLuint shader, std::string_view code = {}) {
GLint shader_status{};
glGetShaderiv(shader, GL_COMPILE_STATUS, &shader_status);
if (shader_status == GL_FALSE) {
@@ -28,8 +28,8 @@ static void LogShader(GLuint shader, std::optional<std::string_view> code = {})
glGetShaderInfoLog(shader, log_length, nullptr, log.data());
if (shader_status == GL_FALSE) {
LOG_ERROR(Render_OpenGL, "{}", log);
- if (code.has_value()) {
- LOG_INFO(Render_OpenGL, "\n{}", *code);
+ if (!code.empty()) {
+ LOG_INFO(Render_OpenGL, "\n{}", code);
}
} else {
LOG_WARNING(Render_OpenGL, "{}", log);