summaryrefslogtreecommitdiff
path: root/vcl/opengl/texture.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/opengl/texture.cxx')
-rw-r--r--vcl/opengl/texture.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/opengl/texture.cxx b/vcl/opengl/texture.cxx
index 63e39b8f34fc..b21643f8880d 100644
--- a/vcl/opengl/texture.cxx
+++ b/vcl/opengl/texture.cxx
@@ -531,9 +531,9 @@ void OpenGLTexture::Unbind()
void OpenGLTexture::SaveToFile(const OUString& rFileName)
{
- std::vector<sal_uInt8> pBuffer(GetWidth() * GetHeight() * 4);
- Read(GL_BGRA, GL_UNSIGNED_BYTE, pBuffer.data());
- BitmapEx aBitmap = OpenGLHelper::ConvertBGRABufferToBitmapEx(pBuffer.data(), GetWidth(), GetHeight());
+ std::vector<sal_uInt8> aBuffer(GetWidth() * GetHeight() * 4);
+ Read(GL_BGRA, GL_UNSIGNED_BYTE, aBuffer.data());
+ BitmapEx aBitmap = OpenGLHelper::ConvertBGRABufferToBitmapEx(aBuffer.data(), GetWidth(), GetHeight());
try
{
vcl::PNGWriter aWriter(aBitmap);