mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-05-25 21:37:54 -04:00
render/gles2: fix missing pop_gles2_debug on early return in render_pass_add_texture
This commit is contained in:
parent
fd610841cc
commit
1a791c2349
1 changed files with 2 additions and 2 deletions
|
|
@ -201,8 +201,6 @@ static void render_pass_add_texture(struct wlr_render_pass *wlr_pass,
|
|||
src_fbox.width /= options->texture->width;
|
||||
src_fbox.height /= options->texture->height;
|
||||
|
||||
push_gles2_debug(renderer);
|
||||
|
||||
if (options->wait_timeline != NULL) {
|
||||
int sync_file_fd =
|
||||
wlr_drm_syncobj_timeline_export_sync_file(options->wait_timeline, options->wait_point);
|
||||
|
|
@ -223,6 +221,8 @@ static void render_pass_add_texture(struct wlr_render_pass *wlr_pass,
|
|||
}
|
||||
}
|
||||
|
||||
push_gles2_debug(renderer);
|
||||
|
||||
setup_blending(!texture->has_alpha && alpha == 1.0 ?
|
||||
WLR_RENDER_BLEND_MODE_NONE : options->blend_mode);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue