Enum glium::SwapBuffersError
[−]
[src]
pub enum SwapBuffersError { ContextLost, AlreadySwapped, }
Error that can happen when swapping buffers.
Variants
ContextLost | The OpenGL context has been lost and needs to be recreated. The Operations will have no effect. Functions that read textures, buffers, etc. from OpenGL will return uninitialized data instead. A context loss usually happens on mobile devices when the user puts the application on
sleep and wakes it up later. However any OpenGL implementation can theoretically lose the
context at any time. Can only happen if calling |
AlreadySwapped | The buffers have already been swapped. This error can be returned when |