summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-08-18 15:38:04 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-09-02 01:08:48 +0200
commit276b3d1f8ab2f67b403e312a94c9abe6ae7b792f (patch)
tree265ae75c9cf22d5a6881a17e430f52402ffcc3d5 /chart2
parent7741e4c2e51d43b2bbced7cc25e39959cacd9cfe (diff)
extract some shared code
Change-Id: I062ea860f695189ab1d59615f1d2390710a21d44
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/view/main/GL3DRenderer.cxx20
-rw-r--r--chart2/source/view/main/OpenGLRender.cxx22
2 files changed, 0 insertions, 42 deletions
diff --git a/chart2/source/view/main/GL3DRenderer.cxx b/chart2/source/view/main/GL3DRenderer.cxx
index 417ac034d0b2..999b9df12b80 100644
--- a/chart2/source/view/main/GL3DRenderer.cxx
+++ b/chart2/source/view/main/GL3DRenderer.cxx
@@ -34,26 +34,6 @@ namespace {
const int CORNER_DIVION_Y = 20;
const int CORNER_DIVION_Z = 20;
-int static checkGLError(const char *file, int line)
-{
- GLenum glErr;
- int retCode = 0;
- glErr = glGetError();
- while (glErr != GL_NO_ERROR)
- {
- const char* sError = OpenGLHelper::GLErrorString(glErr);
- if (sError)
- SAL_WARN("chart2.opengl", "GL Error #" << glErr << "(" << sError << ") in File " << file << " at line: " << line);
- else
- SAL_WARN("chart2.opengl", "GL Error #" << glErr << " (no message available) in File " << file << " at line: " << line);
- retCode = -1;
- return retCode;
- }
- return retCode;
-}
-
-#define CHECK_GL_ERROR() checkGLError(__FILE__, __LINE__)
-
GLfloat texCoords[] = {
1.0f, 0.0f,
1.0f, 1.0f,
diff --git a/chart2/source/view/main/OpenGLRender.cxx b/chart2/source/view/main/OpenGLRender.cxx
index 1075b86cc497..c714a43c37ed 100644
--- a/chart2/source/view/main/OpenGLRender.cxx
+++ b/chart2/source/view/main/OpenGLRender.cxx
@@ -66,28 +66,6 @@ static GLfloat coordReverseVertices[] = {
0.0f, 0.0f,
};
-int static checkGLError(const char *file, int line)
-{
- GLenum glErr;
- int retCode = 0;
- glErr = glGetError();
- while (glErr != GL_NO_ERROR)
- {
- const char* sError = OpenGLHelper::GLErrorString(glErr);
-
- if (sError)
- SAL_WARN("chart2.opengl", "GL Error #" << glErr << "(" << sError << ") in File " << file << " at line: " << line);
- else
- SAL_WARN("chart2.opengl", "GL Error #" << glErr << " (no message available) in File " << file << " at line: " << line);
-
- retCode = -1;
- return retCode;
- }
- return retCode;
-}
-
-#define CHECK_GL_ERROR() checkGLError(__FILE__, __LINE__)
-
#define CHECK_GL_FRAME_BUFFER_STATUS() \
status = glCheckFramebufferStatus(GL_FRAMEBUFFER);\
if( status != GL_FRAMEBUFFER_COMPLETE ) {\