diff options
author | Jonas Ã…dahl <jadahl@gmail.com> | 2019-09-19 21:41:55 +0200 |
---|---|---|
committer | Robert Mader <robert.mader@posteo.de> | 2020-08-07 09:02:49 +0000 |
commit | d6b5f89a1cd38e672d1f332677077be26db54d6b (patch) | |
tree | b21d0d5f7770f52fab5406a9b7a68efca96f4be4 /cogl/cogl/cogl-mutter.h | |
parent | 6777a547ca78ce72a39b6b93d39f5cfc7f500b89 (diff) | |
download | mutter-d6b5f89a1cd38e672d1f332677077be26db54d6b.tar.gz |
cogl: Add API to check whether a format is supported by the driver
Will let us advertise what we actually support at runtime.
https://gitlab.gnome.org/GNOME/mutter/merge_requests/804
Diffstat (limited to 'cogl/cogl/cogl-mutter.h')
-rw-r--r-- | cogl/cogl/cogl-mutter.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cogl/cogl/cogl-mutter.h b/cogl/cogl/cogl-mutter.h index 2d48ce040..28b7ae043 100644 --- a/cogl/cogl/cogl-mutter.h +++ b/cogl/cogl/cogl-mutter.h @@ -48,4 +48,8 @@ void cogl_renderer_set_custom_winsys (CoglRenderer *renderer, CoglCustomWinsysVtableGetter winsys_vtable_getter, void *user_data); +COGL_EXPORT +gboolean cogl_context_format_supports_upload (CoglContext *ctx, + CoglPixelFormat format); + #endif /* __COGL_MUTTER_H___ */ |