File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
py5_resources/py5_module/py5 Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -101,14 +101,14 @@ def decorated(self_, *args):
101
101
if _enforce_safety_check :
102
102
if _first_renderer_opengl is None :
103
103
# This is the first Sketch. Record if the renderer is OpenGL.
104
- if len (args ) >= 2 and args [2 ] in OPENGL_RENDERERS :
104
+ if len (args ) >= 3 and args [2 ] in OPENGL_RENDERERS :
105
105
_first_renderer_opengl = True
106
106
else :
107
107
_first_renderer_opengl = False
108
108
109
109
elif _first_renderer_opengl is False :
110
110
# The first Sketch was not OpenGL. OpenGL is not allowed now.
111
- if len (args ) >= 2 and args [2 ] in OPENGL_RENDERERS :
111
+ if len (args ) >= 3 and args [2 ] in OPENGL_RENDERERS :
112
112
self_ .println (MESSAGE )
113
113
if platform .system () == "Darwin" : # just in case
114
114
self_ .println ("macOS version:" , platform .mac_ver ()[0 ])
You can’t perform that action at this time.
0 commit comments