window: remove recent debug information added in windows for android: gl_get_attribute() is not supported on android platform

This commit is contained in:
Mathieu Virbel 2012-12-02 22:53:37 +01:00
parent 78b50d8c66
commit 7ea3634ea7
1 changed files with 14 additions and 11 deletions

View File

@ -139,6 +139,9 @@ class WindowPygame(WindowBase):
Logger.debug('Window: Display driver ' + pygame.display.get_driver())
Logger.debug('Window: Actual window size: %dx%d',
info.current_w, info.current_h)
if platform() != 'android':
# unsupported platform, such as android that doesn't support
# gl_get_attribute.
Logger.debug('Window: Actual color bits r%d g%d b%d a%d',
pygame.display.gl_get_attribute(pygame.GL_RED_SIZE),
pygame.display.gl_get_attribute(pygame.GL_GREEN_SIZE),