mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-03 09:01:40 -05:00
render/gles2: Implement texture_read_pixels
Also get rid of gles2_texture.owns_texture. We only use the tex/fbo
This commit is contained in:
parent
01bd098166
commit
e7055b4840
2 changed files with 110 additions and 5 deletions
|
|
@ -121,8 +121,12 @@ struct wlr_gles2_texture {
|
|||
struct wl_list link; // wlr_gles2_renderer.textures
|
||||
|
||||
GLenum target;
|
||||
bool owns_tex;
|
||||
|
||||
// If this texture is imported from a buffer, the texture is does not own
|
||||
// these states. These cannot be destroyed along with the texture in this
|
||||
// case.
|
||||
GLuint tex;
|
||||
GLuint fbo;
|
||||
|
||||
bool has_alpha;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue