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.
This commit is contained in:
Tommi Komulainen 2008-06-09 23:00:31 +00:00
parent 78e1f63fcd
commit 45ff3cb00c
2 changed files with 20 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2008-06-09 Tommi Komulainen <tommi.komulainen@iki.fi>
* 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 <tommi.komulainen@iki.fi>
Bug #930 - add support for quartz imagebackend

View File

@ -25,6 +25,7 @@
#include "clutter-backend-osx.h"
#include "clutter-stage-osx.h"
#include "../clutter-private.h"
#include "cogl/cogl.h"
#include <clutter/clutter-debug.h>
#import <AppKit/AppKit.h>
@ -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;