diff options
author | Subv <subv2112@gmail.com> | 2015-08-23 05:09:00 +0200 |
---|---|---|
committer | Subv <subv2112@gmail.com> | 2015-08-30 22:46:22 +0200 |
commit | 12a11472f1cdc7a6071c1d161b09b56dab0bed51 (patch) | |
tree | d32924931af8a39c0c11f4fd485bfc386e7300d8 /src/video_core/command_processor.cpp | |
parent | Merge pull request #1038 from LittleWhite-tb/contributing-include (diff) | |
download | yuzu-12a11472f1cdc7a6071c1d161b09b56dab0bed51.tar yuzu-12a11472f1cdc7a6071c1d161b09b56dab0bed51.tar.gz yuzu-12a11472f1cdc7a6071c1d161b09b56dab0bed51.tar.bz2 yuzu-12a11472f1cdc7a6071c1d161b09b56dab0bed51.tar.lz yuzu-12a11472f1cdc7a6071c1d161b09b56dab0bed51.tar.xz yuzu-12a11472f1cdc7a6071c1d161b09b56dab0bed51.tar.zst yuzu-12a11472f1cdc7a6071c1d161b09b56dab0bed51.zip |
Diffstat (limited to 'src/video_core/command_processor.cpp')
-rw-r--r-- | src/video_core/command_processor.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/video_core/command_processor.cpp b/src/video_core/command_processor.cpp index d82e20f86..bfce080bb 100644 --- a/src/video_core/command_processor.cpp +++ b/src/video_core/command_processor.cpp @@ -231,7 +231,8 @@ static void WritePicaReg(u32 id, u32 value, u32 mask) { for (unsigned int index = 0; index < regs.num_vertices; ++index) { - unsigned int vertex = is_indexed ? (index_u16 ? index_address_16[index] : index_address_8[index]) : index; + // Indexed rendering doesn't use the start offset + unsigned int vertex = is_indexed ? (index_u16 ? index_address_16[index] : index_address_8[index]) : (index + regs.vertex_offset); // -1 is a common special value used for primitive restart. Since it's unknown if // the PICA supports it, and it would mess up the caching, guard against it here. |