aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandros Frantzis <alexandros.frantzis@canonical.com>2012-12-06 19:54:57 +0200
committerAlexandros Frantzis <alexandros.frantzis@canonical.com>2012-12-06 19:54:57 +0200
commitd2dc1a8492bb6ca099cba3b5d891177facb278d8 (patch)
tree659a276faaf7309d322f51aa6ce7eef1bb15f102
parent008f1384ba0eccdaff3ed8088d87f4999b7c01e6 (diff)
downloadglmark2-d2dc1a8492bb6ca099cba3b5d891177facb278d8.tar.gz
CanvasX11GLX: Print out the stencil size of the selected config in debug mode
-rw-r--r--src/canvas-x11-glx.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/canvas-x11-glx.cpp b/src/canvas-x11-glx.cpp
index 3162337..db016b8 100644
--- a/src/canvas-x11-glx.cpp
+++ b/src/canvas-x11-glx.cpp
@@ -201,7 +201,7 @@ CanvasX11GLX::ensure_glx_fbconfig()
XFree(fbc);
if (Options::show_debug) {
- int buf, red, green, blue, alpha, depth, id, native_id;
+ int buf, red, green, blue, alpha, depth, stencil, id, native_id;
glXGetFBConfigAttrib(xdpy_, glx_fbconfig_, GLX_FBCONFIG_ID, &id);
glXGetFBConfigAttrib(xdpy_, glx_fbconfig_, GLX_VISUAL_ID, &native_id);
glXGetFBConfigAttrib(xdpy_, glx_fbconfig_, GLX_BUFFER_SIZE, &buf);
@@ -210,15 +210,17 @@ CanvasX11GLX::ensure_glx_fbconfig()
glXGetFBConfigAttrib(xdpy_, glx_fbconfig_, GLX_BLUE_SIZE, &blue);
glXGetFBConfigAttrib(xdpy_, glx_fbconfig_, GLX_ALPHA_SIZE, &alpha);
glXGetFBConfigAttrib(xdpy_, glx_fbconfig_, GLX_DEPTH_SIZE, &depth);
+ glXGetFBConfigAttrib(xdpy_, glx_fbconfig_, GLX_STENCIL_SIZE, &stencil);
Log::debug("GLX chosen config ID: 0x%x Native Visual ID: 0x%x\n"
" Buffer: %d bits\n"
" Red: %d bits\n"
" Green: %d bits\n"
" Blue: %d bits\n"
" Alpha: %d bits\n"
- " Depth: %d bits\n",
+ " Depth: %d bits\n"
+ " Stencil: %d bits\n",
id, native_id,
- buf, red, green, blue, alpha, depth);
+ buf, red, green, blue, alpha, depth, stencil);
}