]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commit
Reset r_shadow_occlusion_buf on vid_restart. Fixes query buffer dangling pointer
authorcloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 19 May 2020 18:52:55 +0000 (18:52 +0000)
committercloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 19 May 2020 18:52:55 +0000 (18:52 +0000)
commitd49e641a29b050a1caf9f54f991034efa4dbb0e2
treec304ec75854ba68c3df932c8564b0c0df425bead
parent5b2ec1438c9e82b9fa6c85ecc1d29b84fbc1a66e
Reset r_shadow_occlusion_buf on vid_restart. Fixes query buffer dangling pointer

Basically, when coronas appear when r_coronas_occlusionquery is 1, the engine
binds to a query buffer and stores a pointer to it in r_shadow_occlusion_buf.
Upon vid_restart, somewhere along the way, the buffer is cleared but the
original pointer is kept, resulting in a crash next time a corona appears.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12541 d7cf8633-e32d-0410-b094-e92efae38249
gl_rmain.c