Skip to content

Commit

Permalink
Add safety check.
Browse files Browse the repository at this point in the history
  • Loading branch information
hrydgard committed Nov 24, 2017
1 parent f2db033 commit ed2028a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions GPU/GPUCommon.cpp
Expand Up @@ -1809,6 +1809,10 @@ void GPUCommon::Execute_MorphWeight(u32 op, u32 diff) {
}

void GPUCommon::Execute_ImmVertexAlphaPrim(u32 op, u32 diff) {
// Safety check.
if (immCount_ >= MAX_IMMBUFFER_SIZE)
return;

uint32_t data = op & 0xFFFFFF;
TransformedVertex &v = immBuffer_[immCount_++];

Expand Down

0 comments on commit ed2028a

Please sign in to comment.