From c1f333ab88b1820fe77c89c303f5138e1a0c1b6b Mon Sep 17 00:00:00 2001 From: Mathieu Virbel Date: Thu, 4 Nov 2010 15:59:32 -0400 Subject: [PATCH] graphics: if the context is not yet created, create it. --- kivy/c_ext/graphics.pyx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kivy/c_ext/graphics.pyx b/kivy/c_ext/graphics.pyx index bf7c7166c..e4adaa5f6 100644 --- a/kivy/c_ext/graphics.pyx +++ b/kivy/c_ext/graphics.pyx @@ -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: