[Libreoffice-commits] core.git: Branch 'private/moggi/debug-opengl' - chart2/source

Markus Mohrhard markus.mohrhard at collabora.co.uk
Sat Jan 11 10:26:39 PST 2014


 chart2/source/view/main/OpenGLRender.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 2dd2bb58e205cbefa0557a70c58a5697c6cfd51d
Author: Markus Mohrhard <markus.mohrhard at collabora.co.uk>
Date:   Sat Jan 11 19:25:34 2014 +0100

    make sure it is really the glGenTextures call
    
    that one is actually not allowed to create a GL_INVALID_OPERATION in
    OpenGL 3.3+
    
    Change-Id: I853c63cfd7a30d4f61e562082cc24959c0fe6c07

diff --git a/chart2/source/view/main/OpenGLRender.cxx b/chart2/source/view/main/OpenGLRender.cxx
index c1299e2..5184478 100644
--- a/chart2/source/view/main/OpenGLRender.cxx
+++ b/chart2/source/view/main/OpenGLRender.cxx
@@ -1509,6 +1509,7 @@ int OpenGLRender::CreateTextTexture(::rtl::OUString textValue, sal_uInt32 color,
 
     }
 
+    CHECK_GL_ERROR();
     glGenTextures(1, &m_TextInfo.texture);
     CHECK_GL_ERROR();
     glBindTexture(GL_TEXTURE_2D, m_TextInfo.texture);


More information about the Libreoffice-commits mailing list