From 12ba80a86cc2c0ffca0040ce3e17e4dd807ca944 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Wed, 22 Aug 2018 17:01:14 -0400 Subject: [PATCH] gl_shader_gen: Make ShaderSetup's constructor explicit Prevents implicit conversions. --- src/video_core/renderer_opengl/gl_shader_gen.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video_core/renderer_opengl/gl_shader_gen.h b/src/video_core/renderer_opengl/gl_shader_gen.h index 6a1dab0e5..4663411ac 100644 --- a/src/video_core/renderer_opengl/gl_shader_gen.h +++ b/src/video_core/renderer_opengl/gl_shader_gen.h @@ -115,7 +115,7 @@ struct ShaderEntries { using ProgramResult = std::pair; struct ShaderSetup { - ShaderSetup(ProgramCode program_code) { + explicit ShaderSetup(ProgramCode program_code) { program.code = std::move(program_code); }