Fix error on systems without vsync support
If vsync was not requested and it is not supported on the system,
then this feature can safely be ignored.
@@ -409,7 +409,7 @@ impl<'a> ContextPrototype<'a> {
unsafe {
extra_functions.SwapIntervalSGI(swap_mode);
}
- } else {
+ } else if self.opengl.vsync {
return Err(CreationError::OsError(
"Couldn't find any available vsync extension".to_string(),
));
