diff options
| -rw-r--r-- | src/video_core/renderer_opengl/gl_shader_decompiler.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp index c55febbfa..22a413b73 100644 --- a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp +++ b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp | |||
| @@ -5,6 +5,7 @@ | |||
| 5 | #include <map> | 5 | #include <map> |
| 6 | #include <set> | 6 | #include <set> |
| 7 | #include <string> | 7 | #include <string> |
| 8 | #include <string_view> | ||
| 8 | #include "common/assert.h" | 9 | #include "common/assert.h" |
| 9 | #include "common/common_types.h" | 10 | #include "common/common_types.h" |
| 10 | #include "video_core/engines/shader_bytecode.h" | 11 | #include "video_core/engines/shader_bytecode.h" |
| @@ -109,7 +110,7 @@ private: | |||
| 109 | 110 | ||
| 110 | class ShaderWriter { | 111 | class ShaderWriter { |
| 111 | public: | 112 | public: |
| 112 | void AddLine(const std::string& text) { | 113 | void AddLine(std::string_view text) { |
| 113 | DEBUG_ASSERT(scope >= 0); | 114 | DEBUG_ASSERT(scope >= 0); |
| 114 | if (!text.empty()) { | 115 | if (!text.empty()) { |
| 115 | AppendIndentation(); | 116 | AppendIndentation(); |