From aa77dff3a22203c8b88730475ed8a8a7625da853 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 23 Jan 2020 13:06:55 -0500 Subject: VideoCommon/TextureConversionShader: Convert over to using ShaderCode Migrates the shader generator off the use of a global array, eliminating the use of some global state. This also allows us to move the shader generation over to using fmt in a subsequent change. --- Source/Core/VideoCommon/ShaderCache.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/Core/VideoCommon/ShaderCache.cpp') diff --git a/Source/Core/VideoCommon/ShaderCache.cpp b/Source/Core/VideoCommon/ShaderCache.cpp index 8c184c7256..53866a3bfa 100644 --- a/Source/Core/VideoCommon/ShaderCache.cpp +++ b/Source/Core/VideoCommon/ShaderCache.cpp @@ -1178,7 +1178,7 @@ const AbstractPipeline* ShaderCache::GetEFBCopyToRAMPipeline(const EFBCopyParams if (iter != m_efb_copy_to_ram_pipelines.end()) return iter->second.get(); - const char* const shader_code = + const std::string shader_code = TextureConversionShaderTiled::GenerateEncodingShader(uid, m_api_type); const auto shader = g_renderer->CreateShaderFromSource(ShaderStage::Pixel, shader_code); if (!shader) -- cgit v1.2.3