From b94d6dc7134d3bf6b510a164f1b7f02e4610cdbc Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 13 Aug 2025 06:41:35 +0530 Subject: [PATCH] Dont include gl.h in generated uniforms defn --- setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index a7a4167d1..a72dfb1e4 100755 --- a/setup.py +++ b/setup.py @@ -1138,7 +1138,7 @@ def build_uniforms_header(skip_generation: bool = False) -> str: dest = 'kitty/uniforms_generated.h' if skip_generation: return dest - lines = ['#include "gl.h"', ''] + lines = [] a = lines.append uniform_names: Dict[str, Tuple[str, ...]] = {} class_names = {} @@ -1163,7 +1163,7 @@ def build_uniforms_header(skip_generation: bool = False) -> str: class_name, function_name, uniforms = class_names[name], function_names[name], uniform_names[name] a(f'typedef struct {class_name} ''{') for n in uniforms: - a(f' GLint {n};') + a(f' int {n};') a('}'f' {class_name};') a('') a(f'static inline void\n{function_name}(int program, {class_name} *ans) ''{')