Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
nutti committed Feb 3, 2024
1 parent 04e1330 commit f96e16c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/screencast_keys/gpu_utils/shader.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ def register_shaders(cls):
gpu.platform.backend_type_get() != 'OPENGL':
return

if common
if common.is_console_mode():
return

for shader_name, shader_files in cls.SHADER_FILES.items():
vert_code = None
Expand Down Expand Up @@ -82,6 +83,9 @@ def unregister_shaders(cls):
gpu.platform.backend_type_get() != 'OPENGL':
return

if common.is_console_mode():
return

for instance in cls.shader_instances.values():
del instance
cls.shader_instances = {}
Expand Down

0 comments on commit f96e16c

Please sign in to comment.