aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChad Versace <chad.versace@linux.intel.com>2012-11-12 20:39:24 -0800
committerChad Versace <chad.versace@linux.intel.com>2012-11-12 21:04:56 -0800
commit4eff27e64d87417581300e9705a643dcb4d242c5 (patch)
tree5e22dd663af7210f12aace08855d5be2ba8012ee
parentcd0cd5b6e39b661fdc42184907b308645922d3a1 (diff)
cgl: Reject request for ES3 config
That is, reject requests for a config with WAFFLE_CONTEXT_OPENGL_ES3. Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
-rw-r--r--src/waffle/cgl/cgl_config.m4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/waffle/cgl/cgl_config.m b/src/waffle/cgl/cgl_config.m
index 833c234..abe47ec 100644
--- a/src/waffle/cgl/cgl_config.m
+++ b/src/waffle/cgl/cgl_config.m
@@ -85,6 +85,10 @@ cgl_config_check_attrs(const struct wcore_config_attrs *attrs)
wcore_errorf(WAFFLE_ERROR_UNSUPPORTED_ON_PLATFORM,
"CGL does not support OpenGL ES2");
return false;
+ case WAFFLE_CONTEXT_OPENGL_ES3:
+ wcore_errorf(WAFFLE_ERROR_UNSUPPORTED_ON_PLATFORM,
+ "CGL does not support OpenGL ES3");
+ return false;
default:
assert(false);
return false;