Browse Source
Merge pull request #730 from lioncash/string
gl_shader_decompiler: Remove unnecessary const from return values
pull/15/merge
bunnei
8 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
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]); |
|
|
|
|