Kaydet (Commit) 6fd71992 authored tarafından Jan Holesovsky's avatar Jan Holesovsky Kaydeden (comit) Markus Mohrhard

windows opengl: Set PFD_DOUBLEBUFFER even for single buffer rendering.

Otherwise I'm getting lots of errers when dealing with virtual devices...

Change-Id: I34e145817d21dfc2d30fa9ffdfedfa714467d105
üst 4093a540
...@@ -1478,6 +1478,7 @@ bool OpenGLSalGraphicsImpl::drawGradient(const tools::PolyPolygon& rPolyPoly, ...@@ -1478,6 +1478,7 @@ bool OpenGLSalGraphicsImpl::drawGradient(const tools::PolyPolygon& rPolyPoly,
glDisable( GL_STENCIL_TEST ); glDisable( GL_STENCIL_TEST );
PostDraw(); PostDraw();
CHECK_GL_ERROR();
return true; return true;
} }
...@@ -1496,6 +1497,8 @@ void OpenGLSalGraphicsImpl::endPaint() ...@@ -1496,6 +1497,8 @@ void OpenGLSalGraphicsImpl::endPaint()
maContext.makeCurrent(); maContext.makeCurrent();
glFlush(); glFlush();
} }
CHECK_GL_ERROR();
} }
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -767,8 +767,9 @@ bool OpenGLContext::ImplInit() ...@@ -767,8 +767,9 @@ bool OpenGLContext::ImplInit()
0, 0, 0 // Layer Masks Ignored 0, 0, 0 // Layer Masks Ignored
}; };
if (mbUseDoubleBufferedRendering) // interestingly we need this flag being set even if we use single buffer
PixelFormatFront.dwFlags |= PFD_DOUBLEBUFFER; // rendering - otherwise we get errors with virtual devices
PixelFormatFront.dwFlags |= PFD_DOUBLEBUFFER;
if (mbRequestVirtualDevice) if (mbRequestVirtualDevice)
PixelFormatFront.dwFlags |= PFD_DRAW_TO_BITMAP; PixelFormatFront.dwFlags |= PFD_DRAW_TO_BITMAP;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment