[Libreoffice-commits] core.git: Branch 'feature/opengl-vcl2' - vcl/source

Markus Mohrhard markus.mohrhard at googlemail.com
Mon Dec 1 18:07:38 PST 2014


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

New commits:
commit 7a693c4a3d64e7343dfa40e0134fa917b04927d8
Author: Markus Mohrhard <markus.mohrhard at 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)


More information about the Libreoffice-commits mailing list