From 45ff3cb00c40f3abe2c8f817643e2e6640e8e1e9 Mon Sep 17 00:00:00 2001 From: Tommi Komulainen Date: Mon, 9 Jun 2008 23:00:31 +0000 Subject: [PATCH] OSX: print GL_VENDOR, GL_RENDERER, GL_VERSION and GL_EXTENSIONS * clutter/osx/clutter-backend-osx.c (clutter_backend_osx_post_parse): Print GL_VENDOR, GL_RENDERER, GL_VERSION and GL_EXTENSIONS to aid debugging. --- ChangeLog | 6 ++++++ clutter/osx/clutter-backend-osx.c | 14 ++++++++++++++ 2 files changed, 20 insertions(+) diff --git a/ChangeLog b/ChangeLog index 3650147c7..b7cfdb2a8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-06-09 Tommi Komulainen + + * clutter/osx/clutter-backend-osx.c (clutter_backend_osx_post_parse): + Print GL_VENDOR, GL_RENDERER, GL_VERSION and GL_EXTENSIONS to aid + debugging. + 2008-06-09 Tommi Komulainen Bug #930 - add support for quartz imagebackend diff --git a/clutter/osx/clutter-backend-osx.c b/clutter/osx/clutter-backend-osx.c index 492ef6e3f..9c84c23bd 100644 --- a/clutter/osx/clutter-backend-osx.c +++ b/clutter/osx/clutter-backend-osx.c @@ -25,6 +25,7 @@ #include "clutter-backend-osx.h" #include "clutter-stage-osx.h" #include "../clutter-private.h" +#include "cogl/cogl.h" #include #import @@ -71,6 +72,19 @@ clutter_backend_osx_post_parse (ClutterBackend *backend, const long sw = 1; [self->context setValues:&sw forParameter: NSOpenGLCPSwapInterval]; + /* FIXME: move the debugging bits to cogl */ + [self->context makeCurrentContext]; + CLUTTER_NOTE(BACKEND, "GL information\n" + " GL_VENDOR: %s\n" + " GL_RENDERER: %s\n" + " GL_VERSION: %s\n" + "GL_EXTENSIONS: %s\n", + glGetString (GL_VENDOR), + glGetString (GL_RENDERER), + glGetString (GL_VERSION), + glGetString (GL_EXTENSIONS)); + [NSOpenGLContext clearCurrentContext]; + CLUTTER_OSX_POOL_RELEASE(); return TRUE;