mirror of https://github.com/kivy/kivy.git
graphics: if the context is not yet created, create it.
This commit is contained in:
parent
6dc808874d
commit
c1f333ab88
|
@ -212,7 +212,8 @@ cdef class Shader:
|
|||
|
||||
def Context_instance():
|
||||
global _default_context
|
||||
print 'get', _default_context
|
||||
if _default_context == None:
|
||||
_default_context = GraphicContext()
|
||||
return _default_context
|
||||
|
||||
cdef class GraphicContext:
|
||||
|
|
Loading…
Reference in New Issue