[Libreoffice-commits] core.git: 2 commits - chart2/source vcl/source

Markus Mohrhard markus.mohrhard at collabora.co.uk
Sat May 17 00:16:00 PDT 2014


 chart2/source/view/charttypes/GL3DBarChart.cxx |    2 ++
 vcl/source/opengl/OpenGLContext.cxx            |    2 ++
 2 files changed, 4 insertions(+)

New commits:
commit bc5c5365599672c7e5b57e31fe1c0b62764d24b2
Author: Markus Mohrhard <markus.mohrhard at collabora.co.uk>
Date:   Sat May 17 07:39:46 2014 +0200

    add missing OpenGL type error string
    
    Change-Id: I53a7eba4a4f8b1bd61381283b20190cfc05a138a

diff --git a/vcl/source/opengl/OpenGLContext.cxx b/vcl/source/opengl/OpenGLContext.cxx
index 1700488..6bb7c10 100644
--- a/vcl/source/opengl/OpenGLContext.cxx
+++ b/vcl/source/opengl/OpenGLContext.cxx
@@ -307,6 +307,8 @@ const char* getTypeString(GLenum type)
             return "pop group";
         case GL_DEBUG_TYPE_OTHER:
             return "other";
+        case GL_DEBUG_TYPE_ERROR:
+            return "error";
         default:
             ;
     }
commit f5376d87d7f44d146134fa104baeb1cda168ed56
Author: Markus Mohrhard <markus.mohrhard at collabora.co.uk>
Date:   Sat May 17 07:09:50 2014 +0200

    prevent access to uninitialized variables
    
    Change-Id: I1a12e2453ec935dc642135c30a36e1a97fc3d0f9

diff --git a/chart2/source/view/charttypes/GL3DBarChart.cxx b/chart2/source/view/charttypes/GL3DBarChart.cxx
index 9921d96..1653668 100644
--- a/chart2/source/view/charttypes/GL3DBarChart.cxx
+++ b/chart2/source/view/charttypes/GL3DBarChart.cxx
@@ -31,6 +31,8 @@ GL3DBarChart::GL3DBarChart(
     mrWindow(rWindow),
     mpCamera(NULL)
 {
+    Size aSize = mrWindow.GetSizePixel();
+    mpRenderer->SetSize(aSize);
     mrWindow.setRenderer(this);
     mpRenderer->init();
 }


More information about the Libreoffice-commits mailing list