diff --git a/src/backends/native/meta-renderer-native-gles3.c b/src/backends/native/meta-renderer-native-gles3.c index 71a440832..7afea8648 100644 --- a/src/backends/native/meta-renderer-native-gles3.c +++ b/src/backends/native/meta-renderer-native-gles3.c @@ -238,25 +238,3 @@ meta_renderer_native_gles3_blit_shared_bo (MetaEgl *egl, return TRUE; } - -void -meta_renderer_native_gles3_read_pixels (MetaEgl *egl, - MetaGles3 *gles3, - int width, - int height, - uint8_t *target_data, - int target_stride_bytes) -{ - int y; - - g_assert (target_stride_bytes >= 0); - - GLBAS (gles3, glFinish, ()); - - for (y = 0; y < height; y++) - { - GLBAS (gles3, glReadPixels, (0, height - y, width, 1, - GL_RGBA, GL_UNSIGNED_BYTE, - target_data + y * target_stride_bytes)); - } -} diff --git a/src/backends/native/meta-renderer-native-gles3.h b/src/backends/native/meta-renderer-native-gles3.h index ecd0d29de..4e7324c8d 100644 --- a/src/backends/native/meta-renderer-native-gles3.h +++ b/src/backends/native/meta-renderer-native-gles3.h @@ -37,11 +37,4 @@ gboolean meta_renderer_native_gles3_blit_shared_bo (MetaEgl *egl, struct gbm_bo *shared_bo, GError **error); -void meta_renderer_native_gles3_read_pixels (MetaEgl *egl, - MetaGles3 *gles3, - int width, - int height, - uint8_t *target_data, - int target_stride_bytes); - #endif /* META_RENDERER_NATIVE_GLES3_H */