Files
m2dev-client-src/src/SpeedTreeLib
Koray cd2529ee15 prevent leaf render AV and harden leaf shader setup for speedtree
- Guard leaf LOD access in CSpeedTreeWrapper::RenderLeaves() to avoid out-of-bounds indexing of m_pLeafVertexBuffer and m_pLeavesUpdatedByCpu.
  - Skip leaf update/draw when LOD is invalid, inactive, empty, or has no vertex buffer.
  - Add early safety returns for missing leaf buffer arrays and zero LOD count.
  - Guard CSpeedTreeWrapper::EndLeafForTreeType() against null m_pLeavesUpdatedByCpu.
  - Add shader re-init path in wrapper render entrypoints via CSpeedTreeForestDirectX8::EnsureVertexShaders() when cached shader state is missing.
  - Introduce public EnsureVertexShaders() in SpeedTreeForestDirectX8 while keeping InitVertexShaders() private (resolves private-access compile error).
  - Fix leaf shader input declaration to emit dcl_texcoord2 v9 for both GPU wind and GPU leaf placement configurations.
  - Make LoadLeafShader() atomic: create new shader/decl first, then swap only if both succeed, preserving previous valid shader state on failure.
  - Improve leaf shader failure logs to include HRESULT for easier diagnosis.
2026-02-15 16:03:18 +03:00
..
2025-08-18 19:46:48 +02:00
2025-08-28 20:50:20 +02:00
2025-08-18 19:46:48 +02:00
2025-08-28 20:50:20 +02:00
2025-08-28 20:50:20 +02:00
2025-08-28 20:50:20 +02:00
2025-09-21 05:28:55 +02:00
2025-08-28 20:50:20 +02:00
2025-08-19 03:18:56 +02:00
2025-08-18 19:46:48 +02:00
2025-08-28 20:50:20 +02:00