Seems to be crashing on: glDeleteTextures(1, &shadow_corner_tex); which might be a missing GL context.
Seems to be crashing on:
glDeleteTexture s(1, &shadow_ corner_ tex);
which might be a missing GL context.