diff options
| author | David Korth <gerbilsoft@gerbilsoft.com> | 2019-09-14 16:40:34 -0400 |
|---|---|---|
| committer | David Korth <gerbilsoft@gerbilsoft.com> | 2019-12-29 23:45:02 -0500 |
| commit | c2dd2e8a2e202b3cb63023306569d4f26e293adb (patch) | |
| tree | a555c0cec94121ef93a0861e2ce5c342f525a339 /Source/Core/VideoCommon/TextureConversionShader.cpp | |
| parent | 6e549bb6689d967edf4e16f061500f696f35906c (diff) | |
Use std::istringstream or std::ostringstream instead of std::stringstream where possible.
This removes std::iostream from the inheritance chain, which reduces
overhead slightly.
Diffstat (limited to 'Source/Core/VideoCommon/TextureConversionShader.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/TextureConversionShader.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/VideoCommon/TextureConversionShader.cpp b/Source/Core/VideoCommon/TextureConversionShader.cpp index 9348413fd1..5862d45ac7 100644 --- a/Source/Core/VideoCommon/TextureConversionShader.cpp +++ b/Source/Core/VideoCommon/TextureConversionShader.cpp @@ -1392,7 +1392,7 @@ std::string GenerateDecodingShader(TextureFormat format, TLUTFormat palette_form if (!info) return ""; - std::stringstream ss; + std::ostringstream ss; switch (palette_format) { case TLUTFormat::IA8: @@ -1414,7 +1414,7 @@ std::string GenerateDecodingShader(TextureFormat format, TLUTFormat palette_form std::string GeneratePaletteConversionShader(TLUTFormat palette_format, APIType api_type) { - std::stringstream ss; + std::ostringstream ss; ss << R"( int Convert3To8(int v) |
