Attempt to fix the segfault occuring after using offscreen rendering on Windows using the OpenGL backend.