render/gles2: fix missing pop_gles2_debug on early return in render_pass_add_texture

This commit is contained in:
leiliang 2026-05-19 10:55:41 +08:00
parent fd610841cc
commit 1a791c2349

View file

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