Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1154,6 +1154,11 @@ Int HeightMapRenderObjClass::updateBlock(Int x0, Int y0, Int x1, Int y1, WorldH
REF_PTR_SET(m_stageOneTexture, pMap->getAlphaTerrainTexture());
}

// Validate vertex buffer arrays before access to prevent race condition during resource cleanup
if (!m_vertexBufferTiles || !m_vertexBufferBackup) {
return -1;
}

Int i,j;
DX8VertexBufferClass **pVB;
Int originX,originY;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1024,6 +1024,11 @@ Int HeightMapRenderObjClass::updateBlock(Int x0, Int y0, Int x1, Int y1, WorldH
REF_PTR_SET(m_stageOneTexture, pMap->getAlphaTerrainTexture());
}

// Validate vertex buffer arrays before access to prevent race condition during resource cleanup
if (!m_vertexBufferTiles || !m_vertexBufferBackup) {
return -1;
}

Int i,j;
DX8VertexBufferClass **pVB;
Int originX,originY;
Expand Down
Loading