Kaydet (Commit) 039b75d6 authored tarafından Jochen Nitschke's avatar Jochen Nitschke

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/24544Reviewed-by: 's avatarJochen Nitschke <j.nitschke+logerrit@ok.de>
Tested-by: 's avatarJochen Nitschke <j.nitschke+logerrit@ok.de>
üst 75850b0a
...@@ -50,7 +50,7 @@ ImplOpenGLTexture::ImplOpenGLTexture( int nWidth, int nHeight, bool bAllocate ) ...@@ -50,7 +50,7 @@ ImplOpenGLTexture::ImplOpenGLTexture( int nWidth, int nHeight, bool bAllocate )
OpenGLVCLContextZone aContextZone; OpenGLVCLContextZone aContextZone;
auto& rState = OpenGLContext::getVCLContext()->state(); auto& rState = OpenGLContext::getVCLContext()->state();
rState->texture().generate(mnTexture); TextureState::generate(mnTexture);
rState->texture().active(0); rState->texture().active(0);
rState->texture().bind(mnTexture); rState->texture().bind(mnTexture);
...@@ -86,7 +86,7 @@ ImplOpenGLTexture::ImplOpenGLTexture( int nX, int nY, int nWidth, int nHeight ) ...@@ -86,7 +86,7 @@ ImplOpenGLTexture::ImplOpenGLTexture( int nX, int nY, int nWidth, int nHeight )
// nY = GetHeight() - nHeight - nY; // nY = GetHeight() - nHeight - nY;
auto& rState = OpenGLContext::getVCLContext()->state(); auto& rState = OpenGLContext::getVCLContext()->state();
rState->texture().generate(mnTexture); TextureState::generate(mnTexture);
rState->texture().active(0); rState->texture().active(0);
rState->texture().bind(mnTexture); rState->texture().bind(mnTexture);
...@@ -116,7 +116,7 @@ ImplOpenGLTexture::ImplOpenGLTexture( int nWidth, int nHeight, int nFormat, int ...@@ -116,7 +116,7 @@ ImplOpenGLTexture::ImplOpenGLTexture( int nWidth, int nHeight, int nFormat, int
OpenGLVCLContextZone aContextZone; OpenGLVCLContextZone aContextZone;
auto& rState = OpenGLContext::getVCLContext()->state(); auto& rState = OpenGLContext::getVCLContext()->state();
rState->texture().generate(mnTexture); TextureState::generate(mnTexture);
rState->texture().active(0); rState->texture().active(0);
rState->texture().bind(mnTexture); rState->texture().bind(mnTexture);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment