diff options
| author | 2017-01-23 16:27:45 +0100 | |
|---|---|---|
| committer | 2017-01-23 16:53:31 +0100 | |
| commit | 5cc94c17f6cd1e206b84262d34087e89f8767368 (patch) | |
| tree | f7c7943ed4998140f7cf8c232a724cc433a96b85 /src | |
| parent | video_core: gl_rasterizer float to int warning (diff) | |
| download | yuzu-5cc94c17f6cd1e206b84262d34087e89f8767368.tar.gz yuzu-5cc94c17f6cd1e206b84262d34087e89f8767368.tar.xz yuzu-5cc94c17f6cd1e206b84262d34087e89f8767368.zip | |
video_core: fix shader.cpp signed / unsigned warning
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/shader/shader.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/shader/shader.cpp b/src/video_core/shader/shader.cpp index a4aa3c9e0..7ae57e619 100644 --- a/src/video_core/shader/shader.cpp +++ b/src/video_core/shader/shader.cpp | |||
| @@ -118,7 +118,7 @@ void ShaderSetup::Run(UnitState& state, const InputVertex& input, int num_attrib | |||
| 118 | // Setup input register table | 118 | // Setup input register table |
| 119 | const auto& attribute_register_map = config.input_register_map; | 119 | const auto& attribute_register_map = config.input_register_map; |
| 120 | 120 | ||
| 121 | for (unsigned i = 0; i < num_attributes; i++) | 121 | for (int i = 0; i < num_attributes; i++) |
| 122 | state.registers.input[attribute_register_map.GetRegisterForAttribute(i)] = input.attr[i]; | 122 | state.registers.input[attribute_register_map.GetRegisterForAttribute(i)] = input.attr[i]; |
| 123 | 123 | ||
| 124 | state.conditional_code[0] = false; | 124 | state.conditional_code[0] = false; |
| @@ -146,7 +146,7 @@ DebugData<true> ShaderSetup::ProduceDebugInfo(const InputVertex& input, int num_ | |||
| 146 | // Setup input register table | 146 | // Setup input register table |
| 147 | boost::fill(state.registers.input, Math::Vec4<float24>::AssignToAll(float24::Zero())); | 147 | boost::fill(state.registers.input, Math::Vec4<float24>::AssignToAll(float24::Zero())); |
| 148 | const auto& attribute_register_map = config.input_register_map; | 148 | const auto& attribute_register_map = config.input_register_map; |
| 149 | for (unsigned i = 0; i < num_attributes; i++) | 149 | for (int i = 0; i < num_attributes; i++) |
| 150 | state.registers.input[attribute_register_map.GetRegisterForAttribute(i)] = input.attr[i]; | 150 | state.registers.input[attribute_register_map.GetRegisterForAttribute(i)] = input.attr[i]; |
| 151 | 151 | ||
| 152 | state.conditional_code[0] = false; | 152 | state.conditional_code[0] = false; |