Closed PabloPL closed 6 years ago
How to reproduce it: In gbm-surface-color i tried to add
glScissor(0, 0, 0, 0);
glEnable(GL_SCISSOR_TEST);
And then got segmentation fault
Program received signal SIGSEGV, Segmentation fault.
0x00000000 in ?? ()
(gdb) bt
#0 0x00000000 in ?? ()
#1 0xb694e6c0 in cso_save_state (cso=cso@entry=0x55f08, state_mask=1047463) at cso_cache/cso_context.c:1608
#2 0xb6804542 in clear_with_quad (clear_buffers=4, ctx=0xb6506008) at state_tracker/st_cb_clear.c:201
#3 st_Clear (ctx=0xb6506008, mask=2) at state_tracker/st_cb_clear.c:477
#4 0x00012098 in Render () at main.c:273
#5 0x0001223c in main () at main.c:309
With this fix, it's not crashing.
This is taken from vc4 driver. I was playing (making some changes etc) with gbm apps from gfx repo and without this i was getting segmentation fault (in cso_save_state method there is call to set_active_query_state which was not set).