aboutsummaryrefslogtreecommitdiffstats
path: root/src/api/cocoa
diff options
context:
space:
mode:
authorAceeri <conmcclusk@gmail.com>2015-11-09 03:18:48 -0800
committerAceeri <conmcclusk@gmail.com>2015-11-09 03:18:48 -0800
commit9a05577df8f3e616de94635ef41e0d8601f3091c (patch)
tree4b27dae8e6e6ebbfaefa1c18a8b4fdf8dd7a9c46 /src/api/cocoa
parentc6ffedccbdf61cf86591989e61cae73d95251df5 (diff)
downloadglutin-9a05577df8f3e616de94635ef41e0d8601f3091c.tar.gz
glutin-9a05577df8f3e616de94635ef41e0d8601f3091c.zip
Not implemented asserts to prevent silent fails
Diffstat (limited to 'src/api/cocoa')
-rw-r--r--src/api/cocoa/mod.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/api/cocoa/mod.rs b/src/api/cocoa/mod.rs
index c1b22c9..b7e0239 100644
--- a/src/api/cocoa/mod.rs
+++ b/src/api/cocoa/mod.rs
@@ -268,6 +268,10 @@ impl Window {
unimplemented!()
}
+ // not implemented
+ assert!(win_attribs.min_dimensions.is_none());
+ assert!(win_attribs.max_dimensions.is_none());
+
match opengl.robustness {
Robustness::RobustNoResetNotification | Robustness::RobustLoseContextOnReset => {
return Err(CreationError::RobustnessNotSupported);