follow-up for tinderbox fix
> vcl/opengl/texture.cxx:53:5:
> error: calling static member function through member call syntax,
> use 'TextureState::generate' instead [loplugin:staticcall]
Change-Id: Ie550549fb23b0199014ed41adcc2f3da8c4d1520
Reviewed-on: https://gerrit.libreoffice.org/24544
Reviewed-by: Jochen Nitschke <j.nitschke+logerrit@ok.de>
Tested-by: Jochen Nitschke <j.nitschke+logerrit@ok.de>
diff --git a/vcl/opengl/texture.cxx b/vcl/opengl/texture.cxx
index e9fca75..aa796eb 100644
--- a/vcl/opengl/texture.cxx
+++ b/vcl/opengl/texture.cxx
@@ -50,7 +50,7 @@ ImplOpenGLTexture::ImplOpenGLTexture( int nWidth, int nHeight, bool bAllocate )
OpenGLVCLContextZone aContextZone;
auto& rState = OpenGLContext::getVCLContext()->state();
rState->texture().generate(mnTexture);
TextureState::generate(mnTexture);
rState->texture().active(0);
rState->texture().bind(mnTexture);
@@ -86,7 +86,7 @@ ImplOpenGLTexture::ImplOpenGLTexture( int nX, int nY, int nWidth, int nHeight )
// nY = GetHeight() - nHeight - nY;
auto& rState = OpenGLContext::getVCLContext()->state();
rState->texture().generate(mnTexture);
TextureState::generate(mnTexture);
rState->texture().active(0);
rState->texture().bind(mnTexture);
@@ -116,7 +116,7 @@ ImplOpenGLTexture::ImplOpenGLTexture( int nWidth, int nHeight, int nFormat, int
OpenGLVCLContextZone aContextZone;
auto& rState = OpenGLContext::getVCLContext()->state();
rState->texture().generate(mnTexture);
TextureState::generate(mnTexture);
rState->texture().active(0);
rState->texture().bind(mnTexture);