Skip to content

Commit

Permalink
make gl probing errors more visible
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@5315 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Jan 30, 2014
1 parent 66ce69f commit f3c7aab
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/xpra/client/gl/gl_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,10 +295,18 @@ def main():
logging.root.setLevel(logging.DEBUG)
#replace ImportError with a log message:
global gl_check_error
errors = []
def log_error(msg):
log.error("ERROR: %s", msg)
errors.append(msg)
gl_check_error = log_error
props = check_support(True)
log.info("")
if len(errors)>0:
log.info("OpenGL errors:")
for e in errors:
log.info(" %s", e)
log.info("")
log.info("OpenGL properties:")
for k,v in props.items():
if k!="extensions":
Expand Down

0 comments on commit f3c7aab

Please sign in to comment.