Add flags for opengl bug workaround