summaryrefslogtreecommitdiff
path: root/vcl/opengl/scale.cxx
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2014-11-12 18:21:47 +0100
committerJan Holesovsky <kendy@collabora.com>2014-11-12 18:25:00 +0100
commitf7efd54ba5ecfe165143e4951cb3e349acc2e364 (patch)
tree562435e3572bf2ffa8be77e01f6fec3a6eea1fdc /vcl/opengl/scale.cxx
parent1254e56ea3aee206e9e6c06332c10ba775ad9bce (diff)
opengl: Check for error at the end of every method that deals with OpenGL.
Otherwise we will get the report of an error much much later, most probably in a totally unrelated part. Change-Id: I33d3c6d01126f5766beb179eeaeb3276a9078226
Diffstat (limited to 'vcl/opengl/scale.cxx')
-rw-r--r--vcl/opengl/scale.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/vcl/opengl/scale.cxx b/vcl/opengl/scale.cxx
index ccacfc4801e4..da7378639218 100644
--- a/vcl/opengl/scale.cxx
+++ b/vcl/opengl/scale.cxx
@@ -57,6 +57,7 @@ GLuint OpenGLSalBitmap::ImplGetTextureProgram()
mnTexSamplerUniform = glGetUniformLocation( mnTexProgram, "sampler" );
}
+ CHECK_GL_ERROR();
return mnTexProgram;
}
@@ -76,6 +77,7 @@ GLuint OpenGLSalBitmap::ImplGetConvolutionProgram()
mnConvOffsetsUniform = glGetUniformLocation( mnConvProgram, "offsets" );
}
+ CHECK_GL_ERROR();
return mnConvProgram;
}
@@ -110,6 +112,8 @@ bool OpenGLSalBitmap::ImplScaleFilter( GLenum nFilter )
glDeleteFramebuffers( 1, &nFramebufferId );
mpTexture.reset( pNewTex );
+
+ CHECK_GL_ERROR();
return true;
}
@@ -227,6 +231,7 @@ bool OpenGLSalBitmap::ImplScaleConvolution(
mnWidth = nNewWidth;
mnHeight = nNewHeight;
+ CHECK_GL_ERROR();
return true;
}