diff options
author | Markus Mohrhard <markus.mohrhard@collabora.co.uk> | 2014-03-31 03:57:31 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@collabora.co.uk> | 2014-04-08 04:38:19 +0200 |
commit | f92ee8f9b0bb3c3b61e483c30d227fe4f8c484b6 (patch) | |
tree | 70f2f702ff3aeadecf7360c6fe2561d1543f56cb /chart2 | |
parent | dfb2ab0cee2ba04ce8816580447e7db8160ffac4 (diff) |
no need to swap buffers in the offscreen rendering
Change-Id: Ibe25afaa71acc0a0c8995c6f0644eb08fe8920cf
Diffstat (limited to 'chart2')
-rwxr-xr-x | chart2/source/view/main/OpenGLRender.cxx | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/chart2/source/view/main/OpenGLRender.cxx b/chart2/source/view/main/OpenGLRender.cxx index 76c19cb5982e..a0f7573b2e78 100755 --- a/chart2/source/view/main/OpenGLRender.cxx +++ b/chart2/source/view/main/OpenGLRender.cxx @@ -327,14 +327,6 @@ int OpenGLRender::InitOpenGL(GLWindow aWindow) glBufferData(GL_ARRAY_BUFFER, sizeof(texCoords), texCoords, GL_STATIC_DRAW); glBindBuffer(GL_ARRAY_BUFFER, 0); -#if defined( WNT ) - SwapBuffers(glWin.hDC); -#elif defined( MACOSX ) - -#elif defined( UNX ) - glXSwapBuffers(glWin.dpy, glWin.win); -#endif - glFlush(); glEnable(GL_LIGHTING); GLfloat light_direction[] = { 0.0 , 0.0 , 1.0 }; GLfloat materialDiffuse[] = { 1.0 , 1.0 , 1.0 , 1.0}; @@ -569,14 +561,6 @@ void OpenGLRender::renderToBitmap() mxRenderTarget->setPosition(awt::Point(0,0)); #endif glBindFramebuffer(GL_FRAMEBUFFER, 0); -#if defined( WNT ) - SwapBuffers(glWin.hDC); -#elif defined( MACOSX ) - -#elif defined( UNX ) - glXSwapBuffers(glWin.dpy, glWin.win); -#endif - glFlush(); } int OpenGLRender::CreateTextureObj(int width, int height) @@ -946,7 +930,6 @@ int OpenGLRender::RectangleShapePoint(float x, float y, float directionX, float return 0; } - int OpenGLRender::RenderRectangleShape(bool bBorder, bool bFill) { size_t listNum = m_RectangleShapePointList.size(); @@ -1057,7 +1040,6 @@ int OpenGLRender::RenderRectangleShape(bool bBorder, bool bFill) return 0; } - int OpenGLRender::CreateTextTexture(const BitmapEx& rBitmapEx, const awt::Point&, const awt::Size& aSize, long rotation, const drawing::HomogenMatrix3& rTrans) { @@ -1484,5 +1466,4 @@ int OpenGLRender::RenderSymbol2DShape(float x, float y, float , float , sal_Int3 return 0; } - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ +/* iim:set shiftwidth=4 softtabstop=4 expandtab: */ |