diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2014-12-02 06:30:38 +0000 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2014-12-02 11:58:47 +0100 |
commit | 44b6f1cbdc821765ef4f889f0e6a558b44100407 (patch) | |
tree | abc11a03c3915e4eb42d0e87a2ad04296d45ac96 /vcl/opengl/texture.cxx | |
parent | b8a9f58ca414c33e95f1d543d2b33cf1920e9612 (diff) |
vcl: OpenGL texture creation debug.
Change-Id: I6a21c89329d9e9396ed16ce58b184339719adab7
Diffstat (limited to 'vcl/opengl/texture.cxx')
-rw-r--r-- | vcl/opengl/texture.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/vcl/opengl/texture.cxx b/vcl/opengl/texture.cxx index 0c45d7758a33..cc5be7800fa1 100644 --- a/vcl/opengl/texture.cxx +++ b/vcl/opengl/texture.cxx @@ -41,6 +41,8 @@ ImplOpenGLTexture::ImplOpenGLTexture( int nWidth, int nHeight, bool bAllocate ) glTexImage2D( GL_TEXTURE_2D, 0, GL_RGBA, nWidth, nHeight, 0, GL_RGBA, GL_UNSIGNED_BYTE, NULL ); glBindTexture( GL_TEXTURE_2D, 0 ); + SAL_INFO( "vcl.opengl", "OpenGLTexture " << mnTexture << " " << nWidth << "x" << nHeight << " allocate" ); + CHECK_GL_ERROR(); } @@ -65,6 +67,8 @@ ImplOpenGLTexture::ImplOpenGLTexture( int nX, int nY, int nWidth, int nHeight ) CHECK_GL_ERROR(); glBindTexture( GL_TEXTURE_2D, 0 ); + SAL_INFO( "vcl.opengl", "OpenGLTexture " << mnTexture << " " << nWidth << "x" << nHeight << " from x" << nX << ", y" << nY ); + CHECK_GL_ERROR(); } @@ -87,6 +91,8 @@ ImplOpenGLTexture::ImplOpenGLTexture( int nWidth, int nHeight, int nFormat, int glTexImage2D( GL_TEXTURE_2D, 0, GL_RGBA, mnWidth, mnHeight, 0, nFormat, nType, pData ); glBindTexture( GL_TEXTURE_2D, 0 ); + SAL_INFO( "vcl.opengl", "OpenGLTexture " << mnTexture << " " << nWidth << "x" << nHeight << " from data" ); + CHECK_GL_ERROR(); } |