[Libreoffice-commits] core.git: vcl/inc vcl/opengl
Stephan Bergmann
sbergman at redhat.com
Tue Sep 1 12:27:34 PDT 2015
vcl/inc/opengl/texture.hxx | 4 ++--
vcl/opengl/salbmp.cxx | 2 +-
vcl/opengl/texture.cxx | 4 ++--
3 files changed, 5 insertions(+), 5 deletions(-)
New commits:
commit 84eafb6a051863a775f122cec1bc27d9f5fef6e4
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Tue Sep 1 21:26:51 2015 +0200
More useful param type
...for arg that ultimately ends up as const GLVoid *pixels arg to
glTexImage2D
Change-Id: I69ba2f1dd397fa103f3f59638bec727add3caed7
diff --git a/vcl/inc/opengl/texture.hxx b/vcl/inc/opengl/texture.hxx
index 89fc500..f67b334 100644
--- a/vcl/inc/opengl/texture.hxx
+++ b/vcl/inc/opengl/texture.hxx
@@ -42,7 +42,7 @@ public:
int mnFreeSlots;
ImplOpenGLTexture( int nWidth, int nHeight, bool bAllocate );
- ImplOpenGLTexture( int nWidth, int nHeight, int nFormat, int nType, sal_uInt8* pData );
+ ImplOpenGLTexture( int nWidth, int nHeight, int nFormat, int nType, void const * pData );
ImplOpenGLTexture( int nX, int nY, int nWidth, int nHeight );
~ImplOpenGLTexture();
@@ -93,7 +93,7 @@ public:
OpenGLTexture(ImplOpenGLTexture* pImpl, Rectangle aRectangle, int nSlotNumber = 0);
OpenGLTexture( int nWidth, int nHeight, bool bAllocate = true );
- OpenGLTexture( int nWidth, int nHeight, int nFormat, int nType, sal_uInt8* pData );
+ OpenGLTexture( int nWidth, int nHeight, int nFormat, int nType, void const * pData );
OpenGLTexture( int nX, int nY, int nWidth, int nHeight );
OpenGLTexture( const OpenGLTexture& rTexture );
OpenGLTexture( const OpenGLTexture& rTexture, int nX, int nY, int nWidth, int nHeight );
diff --git a/vcl/opengl/salbmp.cxx b/vcl/opengl/salbmp.cxx
index ee71ade..4ed2ed0 100644
--- a/vcl/opengl/salbmp.cxx
+++ b/vcl/opengl/salbmp.cxx
@@ -514,7 +514,7 @@ bool OpenGLSalBitmap::calcChecksumGL(OpenGLTexture& rInputTexture, ChecksumType&
OUString FragShader("areaHashCRC64TFragmentShader");
static const OpenGLTexture aCRCTableTexture(512, 1, GL_RGBA, GL_UNSIGNED_BYTE,
- const_cast<sal_uInt8*>(reinterpret_cast<const sal_uInt8*>(vcl_get_crc64_table())));
+ vcl_get_crc64_table());
// First Pass
diff --git a/vcl/opengl/texture.cxx b/vcl/opengl/texture.cxx
index 217b8bf..57bd7a6 100644
--- a/vcl/opengl/texture.cxx
+++ b/vcl/opengl/texture.cxx
@@ -80,7 +80,7 @@ ImplOpenGLTexture::ImplOpenGLTexture( int nX, int nY, int nWidth, int nHeight )
}
// texture from buffer data
-ImplOpenGLTexture::ImplOpenGLTexture( int nWidth, int nHeight, int nFormat, int nType, sal_uInt8* pData ) :
+ImplOpenGLTexture::ImplOpenGLTexture( int nWidth, int nHeight, int nFormat, int nType, void const * pData ) :
mnRefCount( 1 ),
mnTexture( 0 ),
mnWidth( nWidth ),
@@ -193,7 +193,7 @@ OpenGLTexture::OpenGLTexture( int nX, int nY, int nWidth, int nHeight )
mpImpl = new ImplOpenGLTexture( nX, nY, nWidth, nHeight );
}
-OpenGLTexture::OpenGLTexture( int nWidth, int nHeight, int nFormat, int nType, sal_uInt8* pData )
+OpenGLTexture::OpenGLTexture( int nWidth, int nHeight, int nFormat, int nType, void const * pData )
: maRect( Point( 0, 0 ), Size( nWidth, nHeight ) )
, mnSlotNumber(-1)
{
More information about the Libreoffice-commits
mailing list