renderer/native: remove meta_renderer_native_gles3_read_pixels

It is unused.
This commit is contained in:
Pekka Paalanen 2018-10-16 14:18:46 +03:00 committed by Ray Strode
parent d4bea60e1a
commit 1c044a8fa0
2 changed files with 0 additions and 29 deletions

View File

@ -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));
}
}

View File

@ -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 */