mirror of
https://gitlab.com/suyu-emu/suyu.git
synced 2024-03-15 23:15:44 +00:00
gl_shader_gen: Make ShaderSetup's constructor explicit
Prevents implicit conversions.
This commit is contained in:
parent
1fd979f50a
commit
12ba80a86c
|
@ -115,7 +115,7 @@ struct ShaderEntries {
|
||||||
using ProgramResult = std::pair<std::string, ShaderEntries>;
|
using ProgramResult = std::pair<std::string, ShaderEntries>;
|
||||||
|
|
||||||
struct ShaderSetup {
|
struct ShaderSetup {
|
||||||
ShaderSetup(ProgramCode program_code) {
|
explicit ShaderSetup(ProgramCode program_code) {
|
||||||
program.code = std::move(program_code);
|
program.code = std::move(program_code);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue