graphics: if the context is not yet created, create it.

This commit is contained in:
Mathieu Virbel 2010-11-04 15:59:32 -04:00
parent 6dc808874d
commit c1f333ab88
1 changed files with 2 additions and 1 deletions

View File

@ -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: