[mutter] cogl/texture: Implement is_get_data_supported on GLES textures



commit afe8610b4a550bcba44a3b36095f649869024c63
Author: Heiher <r hev cc>
Date:   Thu Mar 28 20:11:15 2019 +0800

    cogl/texture: Implement is_get_data_supported on GLES textures
    
    https://gitlab.gnome.org/GNOME/mutter/merge_requests/515

 cogl/cogl/driver/gl/gles/cogl-driver-gles.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/cogl/cogl/driver/gl/gles/cogl-driver-gles.c b/cogl/cogl/driver/gl/gles/cogl-driver-gles.c
index 6f2cf6e59..23158d5c7 100644
--- a/cogl/cogl/driver/gl/gles/cogl-driver-gles.c
+++ b/cogl/cogl/driver/gl/gles/cogl-driver-gles.c
@@ -429,6 +429,12 @@ _cogl_driver_update_features (CoglContext *context,
   return TRUE;
 }
 
+static gboolean
+_cogl_driver_texture_2d_is_get_data_supported (CoglTexture2D *tex_2d)
+{
+  return FALSE;
+}
+
 const CoglDriverVtable
 _cogl_driver_gles =
   {
@@ -453,7 +459,7 @@ _cogl_driver_gles =
     _cogl_texture_2d_gl_get_gl_handle,
     _cogl_texture_2d_gl_generate_mipmap,
     _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 */
     _cogl_gl_flush_attributes_state,
     _cogl_clip_stack_gl_flush,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]