diff options
author | Robert Bragg <robert@linux.intel.com> | 2012-01-13 16:48:26 +0000 |
---|---|---|
committer | Robert Bragg <robert@linux.intel.com> | 2012-01-16 18:27:19 +0000 |
commit | a8513c1d77026a98aa5a21614b97667b77e51750 (patch) | |
tree | 093c9a0a5d97ec9299a3f9fad3565152afc4c511 /cogl/cogl-texture-2d.c | |
parent | 7d38d9bdf22972c72dbefda4a0de22db85381e4f (diff) | |
download | cogl-a8513c1d77026a98aa5a21614b97667b77e51750.tar.gz |
renderer: Adds api to add/remove selection constraints
This allows applications to specify certain constraints that feed into
the process of selecting a CoglRenderer backend. For example
applications might depend on x11 for handling input and so they require
a backend that's also based on x11.
Diffstat (limited to 'cogl/cogl-texture-2d.c')
-rw-r--r-- | cogl/cogl-texture-2d.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cogl/cogl-texture-2d.c b/cogl/cogl-texture-2d.c index 3350dc16..97e449c4 100644 --- a/cogl/cogl-texture-2d.c +++ b/cogl/cogl-texture-2d.c @@ -460,8 +460,8 @@ _cogl_egl_texture_2d_new_from_image (CoglContext *ctx, CoglTexture2D *tex_2d; GLenum gl_error; - _COGL_RETURN_VAL_IF_FAIL (_cogl_context_get_winsys (ctx)->criteria & - COGL_WINSYS_CRITERIA_USES_EGL, + _COGL_RETURN_VAL_IF_FAIL (_cogl_context_get_winsys (ctx)->constraints & + COGL_RENDERER_CONSTRAINT_USES_EGL, NULL); _COGL_RETURN_VAL_IF_FAIL (ctx->private_feature_flags & @@ -541,8 +541,8 @@ cogl_wayland_texture_2d_new_from_buffer (CoglContext *ctx, { EGLImageKHR image; - _COGL_RETURN_VAL_IF_FAIL (_cogl_context_get_winsys (ctx)->criteria & - COGL_WINSYS_CRITERIA_USES_EGL, + _COGL_RETURN_VAL_IF_FAIL (_cogl_context_get_winsys (ctx)->constraints & + COGL_RENDERER_CONSTRAINT_USES_EGL, NULL); image = _cogl_egl_create_image (ctx, EGL_WAYLAND_BUFFER_WL, |