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:
Mariusz Bialonczyk 2018-08-02 13:38:00 +02:00
parent 15dacebc36
commit ad406db21c
3 changed files with 18 additions and 10 deletions

View file

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