In GLStars.cpp line 489-491:
Bug (Debug mode only): Bad Memory Access crash in glDrawArrays due to third argument being an uninitialized huge integer.
Fix: The for loop test should be < (less than), not <= (less than or equal). i < BorderGroupCount-1
Reason: BorderGroupCount is one greater than the last valid BorderGroup index, so accessing BorderGroup[i+1] when i = BorderGroupCount-1 is invalid. The current code only works in Release mode because all BorderGroup indices default to zero, which makes the last argument to glDrawArrays a negative number. This results in an ignored OpenGL error. However in Debug mode arrays are not auto-initialized, so the last argument to glDrawArrays is an undefined integer, leading to an OpenGL bad memory access crash.