diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-02-08 13:54:53 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-02-09 21:04:42 +0100 |
commit | 45f4de6d333aa3fa5873cf8e1146286c74960557 (patch) | |
tree | 463a497d6132e44d82294772be4aa3f487ad13e7 /slideshow/source/engine/opengl | |
parent | 34f333445c54c87f3afe777fa467f7a2bb122208 (diff) |
loplugin:indentation in sfx2..slideshow
Change-Id: I3bd23a8f6237d0887a4782b6179a413dd2f03e02
Reviewed-on: https://gerrit.libreoffice.org/67564
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'slideshow/source/engine/opengl')
-rw-r--r-- | slideshow/source/engine/opengl/TransitionImpl.cxx | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/slideshow/source/engine/opengl/TransitionImpl.cxx b/slideshow/source/engine/opengl/TransitionImpl.cxx index f73237e16baf..62127de1d93e 100644 --- a/slideshow/source/engine/opengl/TransitionImpl.cxx +++ b/slideshow/source/engine/opengl/TransitionImpl.cxx @@ -1467,12 +1467,12 @@ int permutation256 [256]= { void initPermTexture(GLuint *texID) { CHECK_GL_ERROR(); - glGenTextures(1, texID); - glBindTexture(GL_TEXTURE_2D, *texID); + glGenTextures(1, texID); + glBindTexture(GL_TEXTURE_2D, *texID); - static bool initialized = false; - static unsigned char permutation2D[256*256*4]; - if( !initialized ) { + static bool initialized = false; + static unsigned char permutation2D[256*256*4]; + if( !initialized ) { int x, y; for( y=0; y < 256; y++ ) @@ -1480,11 +1480,11 @@ void initPermTexture(GLuint *texID) permutation2D[x*4 + y*1024] = permutation256[(y + permutation256[x]) & 0xff]; initialized = true; - } + } - glTexImage2D( GL_TEXTURE_2D, 0, GL_RGBA, 256, 256, 0, GL_RGBA, GL_UNSIGNED_BYTE, permutation2D ); - glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST ); - glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST ); + glTexImage2D( GL_TEXTURE_2D, 0, GL_RGBA, 256, 256, 0, GL_RGBA, GL_UNSIGNED_BYTE, permutation2D ); + glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST ); + glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST ); CHECK_GL_ERROR(); } |