Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Lang] Improve error message for ggui on opengl backend #5509

Merged
merged 14 commits into from
Jul 26, 2022
Merged
5 changes: 5 additions & 0 deletions python/taichi/ui/window.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ def __init__(self, name, res, vsync=False, show_window=True):
package_path = str(pathlib.Path(__file__).parent.parent)

ti_arch = default_cfg().arch
from taichi.lang.misc import \
opengl # pylint: disable=import-outside-toplevel
if ti_arch == opengl:
raise RuntimeError("GGUI not supported on arch=opengl")

is_packed = default_cfg().packed
self.window = _ti_core.PyWindow(get_runtime().prog, name, res, vsync,
show_window, package_path, ti_arch,
Expand Down