GPU: Fixed bug in command list size decoding.

This commit is contained in:
bunnei 2014-12-03 01:05:16 -05:00
parent a1f9cde806
commit 170123982d
4 changed files with 5 additions and 5 deletions

View file

@ -272,8 +272,9 @@ static std::ptrdiff_t ExecuteCommandBlock(const u32* first_command_word) {
void ProcessCommandList(const u32* list, u32 size) {
u32* read_pointer = (u32*)list;
u32 list_length = size / sizeof(u32);
while (read_pointer < list + size) {
while (read_pointer < list + list_length) {
read_pointer += ExecuteCommandBlock(read_pointer);
}
}