diff --git a/moderngl_window/opengl/program.py b/moderngl_window/opengl/program.py index 3035650..bd22093 100644 --- a/moderngl_window/opengl/program.py +++ b/moderngl_window/opengl/program.py @@ -315,7 +315,7 @@ def handle_includes(self, load_source_func, depth=0, source_id=0): for nr, line in enumerate(self._lines): line = line.strip() if line.startswith("#include"): - path = line[9:] + path = re.search(r'#include\s+"?([^"]+)',line)[1] current_id += 1 _, source = load_source_func(path) source = ShaderSource(