cogl/texture: Implement is_get_data_supported on GLES textures

https://gitlab.gnome.org/GNOME/mutter/merge_requests/515
This commit is contained in:
Heiher 2019-03-28 20:11:15 +08:00 committed by hev
parent 9d49e8abd0
commit afe8610b4a

View File

@ -429,6 +429,12 @@ _cogl_driver_update_features (CoglContext *context,
return TRUE; return TRUE;
} }
static gboolean
_cogl_driver_texture_2d_is_get_data_supported (CoglTexture2D *tex_2d)
{
return FALSE;
}
const CoglDriverVtable const CoglDriverVtable
_cogl_driver_gles = _cogl_driver_gles =
{ {
@ -453,7 +459,7 @@ _cogl_driver_gles =
_cogl_texture_2d_gl_get_gl_handle, _cogl_texture_2d_gl_get_gl_handle,
_cogl_texture_2d_gl_generate_mipmap, _cogl_texture_2d_gl_generate_mipmap,
_cogl_texture_2d_gl_copy_from_bitmap, _cogl_texture_2d_gl_copy_from_bitmap,
NULL, /* texture_2d_is_get_data_supported */ _cogl_driver_texture_2d_is_get_data_supported,
NULL, /* texture_2d_get_data */ NULL, /* texture_2d_get_data */
_cogl_gl_flush_attributes_state, _cogl_gl_flush_attributes_state,
_cogl_clip_stack_gl_flush, _cogl_clip_stack_gl_flush,