Merge branch 'simplify_code' of https://github.com/Luflosi/kitty

This commit is contained in:
Kovid Goyal 2019-06-05 21:40:15 +05:30
commit fe329cb4ab
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -60,9 +60,6 @@ def load_shader_programs(semi_transparent=False):
compile_program(BLIT_PROGRAM, *load_shaders('blit')) compile_program(BLIT_PROGRAM, *load_shaders('blit'))
v, f = load_shaders('cell') v, f = load_shaders('cell')
def color_as_vec3(x):
return 'vec3({}, {}, {})'.format(x.red / 255, x.green / 255, x.blue / 255)
for which, p in { for which, p in {
'SIMPLE': CELL_PROGRAM, 'SIMPLE': CELL_PROGRAM,
'BACKGROUND': CELL_BG_PROGRAM, 'BACKGROUND': CELL_BG_PROGRAM,