maj00r
88522fe600
fix(renderer): the legacy renderer clears the arrays the scene left before it draws the ui
...
The legacy renderer drew the ui with the client arrays of the last scene draw
still enabled: the texture coordinates of the normal map unit and the normals,
pointing into the vertex buffer of whatever was drawn last, 48 bytes a vertex.
The ImGui backend sets up the vertex, colour and texture coordinates of the
active unit only, so the driver read the stale arrays with the indices of the
ui. Once the ui had more vertices than that buffer, the NVIDIA driver read past
its end and the game crashed; a crash dump of the editor (an area selected, a
track being laid) shows the read of vertex 15113 at a 48-byte stride in
ImGui_ImplOpenGL2_RenderDrawData.
The arrays are now disabled on every texture unit the geometry uses, with the
normal and colour arrays, inside the glPushClientAttrib already there, so the
scene gets its state back after the ui. The default and the experimental
renderers don't go through this code.
2026-11-15 23:09:49 +01:00
..
2026-10-04 02:27:52 +02:00
2026-10-11 13:22:33 +02:00
2026-10-11 13:22:33 +02:00
2026-04-27 23:03:47 +02:00
2026-11-11 21:34:39 +01:00
2026-11-03 22:00:48 +01:00
2026-03-14 19:16:48 +00:00
2026-10-11 13:22:33 +02:00
2026-10-11 13:22:33 +02:00
2026-11-07 17:12:11 +01:00
2026-11-08 09:35:59 +01:00
2026-11-03 21:50:31 +01:00
2026-10-07 17:13:32 +02:00
2026-10-11 13:22:33 +02:00
2026-10-11 13:22:33 +02:00
2026-10-11 13:22:33 +02:00
2026-03-14 19:01:57 +00:00
2026-10-11 13:22:33 +02:00
2026-03-14 19:16:48 +00:00
2026-11-12 05:04:14 +01:00
2026-11-11 21:34:39 +01:00
2026-11-10 16:22:35 +01:00
2026-11-10 16:22:35 +01:00
2026-10-11 13:22:33 +02:00
2026-10-11 13:22:33 +02:00
2026-10-10 17:35:52 +02:00
Heightmap terrain: .tch chunk packs, streaming with LOD, terrain painting, water and modifiers - terrain/<name>/terrain.yaml + <px>_<pz>.tch packs of 16x16 chunks (250 m, 0.5/1/2/5 m spacing), slices with crc-32 and optional zstd (vendored zstd 1.5.6 in ref/zstd) - heightmap_terrain [name] endheightmap_terrain directive replaces editorterrain - streamer: worker threads, camera + look-ahead loading, geomipmap LOD with skirts, pooled geometry - mat_terrain shader: up to 8 painted layer materials per chunk via texture arrays (opengl33); other renderers fall back to the dominant material - water bodies (outline + level), terrain modifiers (vertical profile shaping kept non-destructive) - F11 Terrain work mode rebuilt: chunks, sculpt, smooth, paint, point spacing, water tools
2026-10-09 21:02:25 +02:00
2026-10-11 13:22:33 +02:00
2026-10-11 13:22:33 +02:00
2026-03-14 19:16:48 +00:00
2026-03-14 19:16:48 +00:00
2026-10-11 13:22:33 +02:00
2026-10-11 13:22:33 +02:00
2026-05-02 14:40:31 +02:00
2026-03-14 19:16:48 +00:00
2026-03-14 19:01:57 +00:00
2026-10-11 13:22:33 +02:00
2026-10-11 13:22:33 +02:00
2026-03-14 19:01:57 +00:00
2026-10-11 13:22:33 +02:00
2026-03-14 19:16:48 +00:00
2026-11-15 23:09:49 +01:00
2026-11-11 21:34:39 +01:00
2026-10-11 13:22:33 +02:00
2026-03-14 19:01:57 +00:00
2026-11-07 11:38:49 +01:00
2026-10-11 13:22:33 +02:00
2026-10-04 20:00:13 +02:00
2026-03-14 19:01:57 +00:00
Heightmap terrain: .tch chunk packs, streaming with LOD, terrain painting, water and modifiers - terrain/<name>/terrain.yaml + <px>_<pz>.tch packs of 16x16 chunks (250 m, 0.5/1/2/5 m spacing), slices with crc-32 and optional zstd (vendored zstd 1.5.6 in ref/zstd) - heightmap_terrain [name] endheightmap_terrain directive replaces editorterrain - streamer: worker threads, camera + look-ahead loading, geomipmap LOD with skirts, pooled geometry - mat_terrain shader: up to 8 painted layer materials per chunk via texture arrays (opengl33); other renderers fall back to the dominant material - water bodies (outline + level), terrain modifiers (vertical profile shaping kept non-destructive) - F11 Terrain work mode rebuilt: chunks, sculpt, smooth, paint, point spacing, water tools
2026-10-09 21:02:25 +02:00
2026-11-11 21:34:39 +01:00
2026-10-11 13:22:33 +02:00
2026-03-14 19:01:57 +00:00