DaemonEngine / Daemon

The Dæmon game engine. With some bits of ioq3 and XreaL.
https://unvanquished.net
BSD 3-Clause "New" or "Revised" License
293 stars 60 forks source link

Reading from tess.verts #1199

Open slipher opened 1 month ago

slipher commented 1 month ago

Some renderer functions attempt to read back a surface's polygons from tess.verts. There are 3 possibilities, none of them good:

I haven't attempted to search for all functions like this, but happened to notice the following ones:

Note that some "autosprite" code is already known to be broken (#730). We might detect more suspicious functions by mapping the buffer as write-only, or setting it to null when a static VBO is active.

slipher commented 2 weeks ago

Another culprit: R_GetPortalOrientations. That one also has a more serious problem: #1216.

slipher commented 1 week ago

For historical interest, some previous examples were fixed in f870d9f392f512ad908a71156f9708944ceabaff :)