mirror of
https://github.com/brl/mutter.git
synced 2025-02-03 07:13:24 +00:00
Neil Roberts
d3ea1ec6f8
Use GL_NEAREST filter in the draw-and-read get_data texture fallback
The fallback for when glGetTexImage is not available renders the texture to the framebuffer to read the data using glReadPixels. This patch just sets the COGL_MATERIAL_FILTER_NEAREST filter mode on the material before rendering to avoid linear filtering which would alter the texture data.
Description
Languages
C
98.9%
Meson
0.7%
Python
0.3%