summaryrefslogtreecommitdiffstats
path: root/src/video_core/command_processor.cpp
diff options
context:
space:
mode:
authorRohit Nirmal <rohitnirmal9@gmail.com>2014-11-30 08:44:30 +0100
committerRohit Nirmal <rohitnirmal9@gmail.com>2014-12-01 05:29:23 +0100
commitf9b53c3e943c06e982e0abbd2f87245d63c17776 (patch)
tree2a0e0150355acec549a08488c8b2b7f12167d4ef /src/video_core/command_processor.cpp
parentMerge pull request #227 from vaguilar/fix-warnings (diff)
downloadyuzu-f9b53c3e943c06e982e0abbd2f87245d63c17776.tar
yuzu-f9b53c3e943c06e982e0abbd2f87245d63c17776.tar.gz
yuzu-f9b53c3e943c06e982e0abbd2f87245d63c17776.tar.bz2
yuzu-f9b53c3e943c06e982e0abbd2f87245d63c17776.tar.lz
yuzu-f9b53c3e943c06e982e0abbd2f87245d63c17776.tar.xz
yuzu-f9b53c3e943c06e982e0abbd2f87245d63c17776.tar.zst
yuzu-f9b53c3e943c06e982e0abbd2f87245d63c17776.zip
Diffstat (limited to 'src/video_core/command_processor.cpp')
-rw-r--r--src/video_core/command_processor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/command_processor.cpp b/src/video_core/command_processor.cpp
index 1ec727698..8a6ba2560 100644
--- a/src/video_core/command_processor.cpp
+++ b/src/video_core/command_processor.cpp
@@ -60,7 +60,7 @@ static inline void WritePicaReg(u32 id, u32 value, u32 mask) {
const u8* load_address = base_address + loader_config.data_offset;
// TODO: What happens if a loader overwrites a previous one's data?
- for (int component = 0; component < loader_config.component_count; ++component) {
+ for (unsigned component = 0; component < loader_config.component_count; ++component) {
u32 attribute_index = loader_config.GetComponent(component);
vertex_attribute_sources[attribute_index] = load_address;
vertex_attribute_strides[attribute_index] = static_cast<u32>(loader_config.byte_count);