mirror of
https://github.com/brl/mutter.git
synced 2025-02-19 14:44:10 +00:00
renderer/native: remove meta_renderer_native_gles3_read_pixels
It is unused.
This commit is contained in:
parent
d4bea60e1a
commit
1c044a8fa0
@ -238,25 +238,3 @@ meta_renderer_native_gles3_blit_shared_bo (MetaEgl *egl,
|
|||||||
|
|
||||||
return TRUE;
|
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));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
@ -37,11 +37,4 @@ gboolean meta_renderer_native_gles3_blit_shared_bo (MetaEgl *egl,
|
|||||||
struct gbm_bo *shared_bo,
|
struct gbm_bo *shared_bo,
|
||||||
GError **error);
|
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 */
|
#endif /* META_RENDERER_NATIVE_GLES3_H */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user