[waffle] [PATCH 5/6] cgl: Add an error when trying to use a robust access context.
Bas Nieuwenhuizen
bas at basnieuwenhuizen.nl
Wed Apr 6 15:59:29 UTC 2016
Signed-off-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
---
src/waffle/cgl/cgl_config.m | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/waffle/cgl/cgl_config.m b/src/waffle/cgl/cgl_config.m
index d7e8ed3..898ee24 100644
--- a/src/waffle/cgl/cgl_config.m
+++ b/src/waffle/cgl/cgl_config.m
@@ -82,6 +82,12 @@ cgl_config_check_attrs(const struct cgl_platform *plat,
return false;
}
+ if (attrs->context_robust) {
+ wcore_errorf(WAFFLE_ERROR_UNSUPPORTED_ON_PLATFORM,
+ "CGL does not support robust contexts");
+ return false;
+ }
+
// Emulate EGL_KHR_create_context, which allows the implementation to
// return a context of the latest supported flavor that is
// backwards-compatibile with the requested flavor.
--
2.8.0
More information about the waffle
mailing list