Skip to content

Launching the game with -opengl consistently crashes

Seems to have been introduced with !1516 (merged), but this crash seems to trigger regardless of palette rendering being enabled.

EDIT: Turns out this only happens if cv_glpaletterendering defaults to "On", which is not the case in next but is the case in the (currently private) 2.2.14 branch...

Error occurred on Monday, September 2, 2024 at 23:28:06.

srb2win.exe caused an Access Violation at location 75778CB8 in module msvcrt.dll Reading from location 00000000.

Registers:
eax=00000000 ebx=00000000 ecx=00000400 edx=00960480 esi=00000000 edi=00000004
eip=75778cb8 esp=012af69c ebp=012af6a8 iopl=0         nv up ei pl nz ac po nc
cs=0023  ss=002b  ds=002b  es=002b  fs=0053  gs=002b             efl=00210216

AddrPC   Params
75778CB8 00960480 00000000 00000400  msvcrt.dll!memcmp
0042A494 034B486C 00000000 00000003  srb2win.exe!HWR_SetMapPalette
00413C5E 007F68FD 00000000 00000000  srb2win.exe!CV_glpaletterendering_OnChange
0040529B 007F691C 007F68FD 00000002  srb2win.exe!SDL_main
0040529B 00000000 00000000 00000000  srb2win.exe!SDL_main```
Edited by sphere