diff options
author | bunnei <bunneidev@gmail.com> | 2018-07-20 05:46:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-20 05:46:43 +0200 |
commit | f36affdbe3727e21b6b0bdc3bef562ada6abe2c8 (patch) | |
tree | e897ee7f1f64169c878acdaf7104199b0f59db37 /src | |
parent | Merge pull request #729 from lioncash/simplify (diff) | |
parent | gl_shader_decompiler: Remove unnecessary const from return values (diff) | |
download | yuzu-f36affdbe3727e21b6b0bdc3bef562ada6abe2c8.tar yuzu-f36affdbe3727e21b6b0bdc3bef562ada6abe2c8.tar.gz yuzu-f36affdbe3727e21b6b0bdc3bef562ada6abe2c8.tar.bz2 yuzu-f36affdbe3727e21b6b0bdc3bef562ada6abe2c8.tar.lz yuzu-f36affdbe3727e21b6b0bdc3bef562ada6abe2c8.tar.xz yuzu-f36affdbe3727e21b6b0bdc3bef562ada6abe2c8.tar.zst yuzu-f36affdbe3727e21b6b0bdc3bef562ada6abe2c8.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_opengl/gl_shader_decompiler.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp index 5fae95788..9b308b923 100644 --- a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp +++ b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp @@ -216,7 +216,7 @@ public: } /// Returns a GLSL string representing the current state of the register - const std::string GetActiveString() { + std::string GetActiveString() { declr_type.insert(active_type); return GetPrefixString(active_type) + std::to_string(index) + '_' + suffix; } @@ -518,7 +518,7 @@ public: private: /// Build GLSL conversion function, e.g. floatBitsToInt, intBitsToFloat, etc. - const std::string GetGLSLConversionFunc(GLSLRegister::Type src, GLSLRegister::Type dest) const { + std::string GetGLSLConversionFunc(GLSLRegister::Type src, GLSLRegister::Type dest) const { const std::string src_type = GLSLRegister::GetTypeString(src); std::string dest_type = GLSLRegister::GetTypeString(dest); dest_type[0] = toupper(dest_type[0]); |