Permalink
Browse files

Add safety check.

  • Loading branch information...
hrydgard committed Nov 24, 2017
1 parent f2db033 commit ed2028aa5e0e3c1e9b774d2631e78df21b33dd61
Showing with 4 additions and 0 deletions.
  1. +4 −0 GPU/GPUCommon.cpp
@@ -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_++];

0 comments on commit ed2028a

Please sign in to comment.