vcl/source/opengl/OpenGLContext.cxx |    6 ++++++
 1 file changed, 6 insertions(+)

New commits:
commit 7a693c4a3d64e7343dfa40e0134fa917b04927d8
Author: Markus Mohrhard <markus.mohrh...@googlemail.com>
Date:   Tue Dec 2 03:05:27 2014 +0100

    add some debug code that checks the returned pixel format
    
    Change-Id: I44a1a8d97fecb7d371c4daa9888c56766087ec82

diff --git a/vcl/source/opengl/OpenGLContext.cxx 
b/vcl/source/opengl/OpenGLContext.cxx
index 2de3afe..c4f245e 100644
--- a/vcl/source/opengl/OpenGLContext.cxx
+++ b/vcl/source/opengl/OpenGLContext.cxx
@@ -874,6 +874,12 @@ bool OpenGLContext::ImplInit()
     else
     {
         WindowPix = ChoosePixelFormat(m_aGLWin.hDC, &PixelFormatFront);
+#if 1
+        PIXELFORMATDESCRIPTOR pfd;
+        DescribePixelFormat(m_aGLWin.hDC, WindowPix, 
sizeof(PIXELFORMATDESCRIPTOR), &pfd);
+        SAL_WARN("vcl.opengl", "Render Target: Window: " << (int) 
((pfd.dwFlags & PFD_DRAW_TO_WINDOW) != 0) << ", Bitmap: " << (int) 
((pfd.dwFlags & PFD_DRAW_TO_BITMAP) != 0));
+        SAL_WARN("vcl.opengl", "Supports OpenGL: " << (int) ((pfd.dwFlags & 
PFD_SUPPORT_OPENGL) != 0));
+#endif
     }
 
     if (WindowPix == 0)
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to