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:
parent
78e1f63fcd
commit
45ff3cb00c
@ -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>
|
2008-06-09 Tommi Komulainen <tommi.komulainen@iki.fi>
|
||||||
|
|
||||||
Bug #930 - add support for quartz imagebackend
|
Bug #930 - add support for quartz imagebackend
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
#include "clutter-backend-osx.h"
|
#include "clutter-backend-osx.h"
|
||||||
#include "clutter-stage-osx.h"
|
#include "clutter-stage-osx.h"
|
||||||
#include "../clutter-private.h"
|
#include "../clutter-private.h"
|
||||||
|
#include "cogl/cogl.h"
|
||||||
|
|
||||||
#include <clutter/clutter-debug.h>
|
#include <clutter/clutter-debug.h>
|
||||||
#import <AppKit/AppKit.h>
|
#import <AppKit/AppKit.h>
|
||||||
@ -71,6 +72,19 @@ clutter_backend_osx_post_parse (ClutterBackend *backend,
|
|||||||
const long sw = 1;
|
const long sw = 1;
|
||||||
[self->context setValues:&sw forParameter: NSOpenGLCPSwapInterval];
|
[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();
|
CLUTTER_OSX_POOL_RELEASE();
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user