MantisBT - Zandronum
View Issue Details
0001976Zandronum[All Projects] Bugpublic2014-10-29 16:212018-09-30 23:04
forrestmarkx 
Torr Samaho 
normalcrashalways
closedfixed 
MicrosoftWindowsXP/Vista/7
2.0-beta 
2.02.0 
0001976: Changing Use Vertex Buffer in Software causes a crash
If you attempt to change Use Vertex Buffer in software mode you will crash
In Software mode change Use Vertex Buffer to anything
No tags attached.
Issue History
2014-10-29 16:21forrestmarkxNew Issue
2014-10-29 17:08WatermelonNote Added: 0010713
2014-10-29 17:08WatermelonStatusnew => feedback
2014-10-29 17:46forrestmarkxNote Added: 0010716
2014-10-29 17:46forrestmarkxStatusfeedback => new
2014-10-29 18:11WaTaKiDNote Added: 0010717
2014-10-29 19:43DuskNote Added: 0010720
2014-10-29 19:44DuskNote Edited: 0010720bug_revision_view_page.php?bugnote_id=10720#r5879
2014-10-29 19:46DuskPriorityurgent => normal
2014-10-29 20:34WaTaKiDNote Added: 0010723
2015-01-15 14:14Edward-sanNote Added: 0011379
2015-01-15 14:14Edward-sanNote Edited: 0011379bug_revision_view_page.php?bugnote_id=11379#r6394
2015-01-15 14:59Edward-sanAssigned To => Torr Samaho
2015-01-15 14:59Edward-sanStatusnew => assigned
2015-02-15 21:08DuskTarget Version => 2.0
2015-03-08 20:41cobaltStatusassigned => needs testing
2015-03-08 20:41cobaltNote Added: 0011791
2015-03-08 20:46cobaltNote Added: 0011792
2015-03-08 21:49WaTaKiDNote Added: 0011795
2015-03-09 04:48DuskNote Deleted: 0011792
2015-03-09 04:48DuskNote Edited: 0011791bug_revision_view_page.php?bugnote_id=11791#r6743
2015-03-09 04:49DuskStatusneeds testing => resolved
2015-03-09 04:49DuskFixed in Version => 2.0
2015-03-09 04:49DuskResolutionopen => fixed
2018-09-30 23:04Blzut3Statusresolved => closed

Notes
(0010713)
Watermelon   
2014-10-29 17:08   
Is that somewhere in Options? Or a CVAR?
(0010716)
forrestmarkx   
2014-10-29 17:46   
Options, In OpenGL setting under Prefrences
(0010717)
WaTaKiD   
2014-10-29 18:11   
aka gl_usevbo 0/1/2

i can crash 100% of the time in software, with a fresh config or not, regardless of wut im changing the cvar to, or wut it was before trying to change it

also when using a fresh config, if ur first startup is in software, it will actually be set to -1 (or 'unknown' in the menu) although changing it will still crash
(0010720)
Dusk   
2014-10-29 19:43   
(edited on: 2014-10-29 19:44)
This is due to infinite recursion in gl_usevbo callback function. In the software renderer the !(gl.flags&RFL_VBO) expression is true, causing it set `self` to 0, recursively triggering the callback again.

Does this happen in gzdoom r880? Maybe we need to backport a fix for this.

(0010723)
WaTaKiD   
2014-10-29 20:34   
after testing gzdoom r880 and 1.8.6, this still happens, but in 1.8.7 it doesnt
(0011379)
Edward-san   
2015-01-15 14:14   
Doesn't happen in 1.8.7 because of this commit, which removes pre GL 2.0 support.

(0011791)
cobalt   
2015-03-08 20:41   
(edited on: 2015-03-09 04:48)
Issue addressed by commit 7c37e9a58eaa: Fixed: Changing gl_usevbo while using the software renderer crashed the game (fixes 1976).
Committed by Benjamin Berkels [Torr Samaho] on Sunday 08 March 2015 21:39:11

Changes in files:
 src/gl/data/gl_vertexbuffer.cpp | 3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

(0011795)
WaTaKiD   
2015-03-08 21:49   
after testing with 2.0-r150308-2039, issue seems fixed