diff options
| author | 2018-08-22 17:01:14 -0400 | |
|---|---|---|
| committer | 2018-08-22 17:04:44 -0400 | |
| commit | 12ba80a86cc2c0ffca0040ce3e17e4dd807ca944 (patch) | |
| tree | 418788dcae84db7adf90fa0ccdb306e2599297c8 | |
| parent | gl_shader_gen: Use a std::vector to represent program code instead of std::array (diff) | |
| download | yuzu-12ba80a86cc2c0ffca0040ce3e17e4dd807ca944.tar.gz yuzu-12ba80a86cc2c0ffca0040ce3e17e4dd807ca944.tar.xz yuzu-12ba80a86cc2c0ffca0040ce3e17e4dd807ca944.zip | |
gl_shader_gen: Make ShaderSetup's constructor explicit
Prevents implicit conversions.
Diffstat (limited to '')
| -rw-r--r-- | src/video_core/renderer_opengl/gl_shader_gen.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 { | |||
| 115 | using ProgramResult = std::pair<std::string, ShaderEntries>; | 115 | using ProgramResult = std::pair<std::string, ShaderEntries>; |
| 116 | 116 | ||
| 117 | struct ShaderSetup { | 117 | struct ShaderSetup { |
| 118 | ShaderSetup(ProgramCode program_code) { | 118 | explicit ShaderSetup(ProgramCode program_code) { |
| 119 | program.code = std::move(program_code); | 119 | program.code = std::move(program_code); |
| 120 | } | 120 | } |
| 121 | 121 | ||