diff --git a/kivy/core/gl/__init__.py b/kivy/core/gl/__init__.py index 1d020e547..682d3de9f 100644 --- a/kivy/core/gl/__init__.py +++ b/kivy/core/gl/__init__.py @@ -19,7 +19,6 @@ if gl_check.lower() in ['0', 'false', 'no']: # Automaticly import window auto to ensure the default window creation import kivy.core.window -# Display the current OpenGL version -version = glGetString(GL_VERSION) -Logger.info('GL: OpenGL version <%s>' % str(version)) - +def print_gl_version(): + version = glGetString(GL_VERSION) + Logger.info('GL: OpenGL version <%s>' % str(version)) diff --git a/kivy/core/window/__init__.py b/kivy/core/window/__init__.py index 13050626a..18e1f5d31 100644 --- a/kivy/core/window/__init__.py +++ b/kivy/core/window/__init__.py @@ -154,6 +154,9 @@ class WindowBase(EventDispatcher): if Config.getboolean('kivy', 'show_fps'): self.show_fps = True + # before creating the window + import kivy.core.gl + # configure the window self.create_window(params) @@ -181,7 +184,8 @@ class WindowBase(EventDispatcher): def create_window(self, params): '''Will create the main window and configure it''' - pass + from kivy.core.gl import print_gl_version + print_gl_version() def on_flip(self): '''Flip between buffers (event)'''