mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-01 22:58:38 -04:00
gles2: change context when it is not current
Texture functions, that create and manipulate textures should switch the current context if necessary. thanks to: @emersion Fixes #934
This commit is contained in:
parent
15dacebc36
commit
ad406db21c
3 changed files with 18 additions and 10 deletions
|
|
@ -88,7 +88,7 @@ const struct wlr_gles2_pixel_format *get_gles2_format_from_wl(
|
|||
enum wl_shm_format fmt);
|
||||
const enum wl_shm_format *get_gles2_formats(size_t *len);
|
||||
|
||||
struct wlr_gles2_texture *get_gles2_texture_in_context(
|
||||
struct wlr_gles2_texture *gles2_get_texture(
|
||||
struct wlr_texture *wlr_texture);
|
||||
|
||||
void push_gles2_marker(const char *file, const char *func);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue