Remove rendering via framebuffer for transparent windows with images

There is no need for it with the current rendering pipeline. Images are
blended with premult blending.
This commit is contained in:
Kovid Goyal
2023-06-21 16:06:07 +05:30
parent 2a96b5cb25
commit 098a38a3a9
11 changed files with 11 additions and 79 deletions

View File

@@ -9,7 +9,6 @@ from typing import Any, Callable, Dict, Iterator, Optional
from .constants import read_kitty_resource
from .fast_data_types import (
BGIMAGE_PROGRAM,
BLIT_PROGRAM,
CELL_BG_PROGRAM,
CELL_FG_PROGRAM,
CELL_PROGRAM,
@@ -149,7 +148,6 @@ class LoadShaderPrograms:
opts = get_options()
self.text_old_gamma = opts.text_composition_strategy == 'legacy'
self.text_fg_override_threshold = max(0, min(opts.text_fg_override_threshold, 100)) * 0.01
program_for('blit').compile(BLIT_PROGRAM, allow_recompile)
cell = program_for('cell')
if self.cell_program_replacer is null_replacer:
self.cell_program_replacer = MultiReplacer(