diff options
| author | Tony Wasserka <neobrainx@gmail.com> | 2014-05-16 15:59:59 +0200 |
|---|---|---|
| committer | Tony Wasserka <neobrainx@gmail.com> | 2014-05-16 15:59:59 +0200 |
| commit | 25e8dc0aed56d60b317b6f725e0996ad55af9f7d (patch) | |
| tree | b1a85d274082d41ad0c0f1d2fa857c9da252363d /Source/Core/VideoCommon/OpcodeDecoding.cpp | |
| parent | 36720e6822a8049c34ff1bfe4ea24e47f85847ca (diff) | |
| parent | 369c0c4ce20859448a82c509661cbfe90dcc8d44 (diff) | |
Merge pull request #354 from magumagu/gx-primitive-mask
Opcode decoding: 0xC0 isn't a valid command.
Diffstat (limited to 'Source/Core/VideoCommon/OpcodeDecoding.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/OpcodeDecoding.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/VideoCommon/OpcodeDecoding.cpp b/Source/Core/VideoCommon/OpcodeDecoding.cpp index 703f691e7e..2500dbdd38 100644 --- a/Source/Core/VideoCommon/OpcodeDecoding.cpp +++ b/Source/Core/VideoCommon/OpcodeDecoding.cpp @@ -201,7 +201,7 @@ u32 FifoCommandRunnable(u32 &command_size) break; default: - if (cmd_byte & 0x80) + if ((cmd_byte & 0xC0) == 0x80) { // check if we can read the header if (buffer_size >= 3) @@ -346,7 +346,7 @@ static void Decode() // draw primitives default: - if (cmd_byte & 0x80) + if ((cmd_byte & 0xC0) == 0x80) { // load vertices (use computed vertex size from FifoCommandRunnable above) u16 numVertices = DataReadU16(); @@ -434,7 +434,7 @@ static void DecodeSemiNop() // draw primitives default: - if (cmd_byte & 0x80) + if ((cmd_byte & 0xC0) == 0x80) { // load vertices (use computed vertex size from FifoCommandRunnable above) u16 numVertices = DataReadU16(); |
