From 0c20db8d108c4123fcc3ecb343759e68567a4d4e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 26 Nov 2018 00:51:57 +0300 Subject: Remove extra ; from different code. --- src/render/mobileopengl2graphics.cpp | 4 ++-- src/render/mobileopenglgraphics.cpp | 2 +- src/render/modernopenglgraphics.cpp | 4 ++-- src/render/normalopenglgraphics.cpp | 4 ++-- src/render/openglx/mglxinit.cpp | 14 +++++++------- 5 files changed, 14 insertions(+), 14 deletions(-) (limited to 'src/render') diff --git a/src/render/mobileopengl2graphics.cpp b/src/render/mobileopengl2graphics.cpp index 73579005a..a89759d2b 100644 --- a/src/render/mobileopengl2graphics.cpp +++ b/src/render/mobileopengl2graphics.cpp @@ -75,7 +75,7 @@ var[vp + 20] = dstX + w; \ var[vp + 21] = dstY + h; \ var[vp + 22] = x2; \ - var[vp + 23] = y2; + var[vp + 23] = y2 #define toGL static_cast @@ -128,7 +128,7 @@ MobileOpenGL2Graphics::~MobileOpenGL2Graphics() void MobileOpenGL2Graphics::deleteGLObjects() restrict2 { - delete2(mProgram); + delete2(mProgram) if (mVbo != 0U) mglDeleteBuffers(1, &mVbo); #ifndef __native_client__ diff --git a/src/render/mobileopenglgraphics.cpp b/src/render/mobileopenglgraphics.cpp index c8cbb7bba..7465ef3ff 100644 --- a/src/render/mobileopenglgraphics.cpp +++ b/src/render/mobileopenglgraphics.cpp @@ -68,7 +68,7 @@ vVar[vp + 8] = static_cast(dstX); \ vVar[vp + 9] = static_cast(dstY + h); \ vVar[vp + 10] = static_cast(dstX + w); \ - vVar[vp + 11] = static_cast(dstY + h); + vVar[vp + 11] = static_cast(dstY + h) GLuint MobileOpenGLGraphics::mTextureBinded = 0; #ifdef DEBUG_DRAW_CALLS diff --git a/src/render/modernopenglgraphics.cpp b/src/render/modernopenglgraphics.cpp index e742db33e..94efe61a4 100644 --- a/src/render/modernopenglgraphics.cpp +++ b/src/render/modernopenglgraphics.cpp @@ -77,7 +77,7 @@ var[vp + 20] = dstX + w; \ var[vp + 21] = dstY + h; \ var[vp + 22] = x2; \ - var[vp + 23] = y2; + var[vp + 23] = y2 GLuint ModernOpenGLGraphics::mTextureBinded = 0; #ifdef DEBUG_DRAW_CALLS @@ -125,7 +125,7 @@ ModernOpenGLGraphics::~ModernOpenGLGraphics() void ModernOpenGLGraphics::deleteGLObjects() restrict2 { - delete2(mProgram); + delete2(mProgram) if (mVbo != 0U) { // logger->log("delete buffer vbo: %u", mVbo); diff --git a/src/render/normalopenglgraphics.cpp b/src/render/normalopenglgraphics.cpp index edaeb17cb..f9f84a030 100644 --- a/src/render/normalopenglgraphics.cpp +++ b/src/render/normalopenglgraphics.cpp @@ -59,7 +59,7 @@ vVar[vp + 4] = dstX + w; \ vVar[vp + 5] = dstY + h; \ vVar[vp + 6] = dstX; \ - vVar[vp + 7] = dstY + h; + vVar[vp + 7] = dstY + h #define vertFillNv(tVar, vVar, srcX, srcY, dstX, dstY, w, h) \ @@ -78,7 +78,7 @@ vVar[vp + 4] = dstX + w; \ vVar[vp + 5] = dstY + h; \ vVar[vp + 6] = dstX; \ - vVar[vp + 7] = dstY + h; + vVar[vp + 7] = dstY + h namespace { diff --git a/src/render/openglx/mglxinit.cpp b/src/render/openglx/mglxinit.cpp index 74c378ed4..d73d981c6 100644 --- a/src/render/openglx/mglxinit.cpp +++ b/src/render/openglx/mglxinit.cpp @@ -30,13 +30,13 @@ void Glx::initFunctions() { - assignFunction(glXCreateContext); - assignFunction(glXGetCurrentContext); - assignFunctionARB(glXCreateContextAttribs); - assignFunction(glXChooseFBConfig); - assignFunction(glXDestroyContext); - assignFunction(glXMakeCurrent); - assignFunction(glXSwapBuffers); + assignFunction(glXCreateContext) + assignFunction(glXGetCurrentContext) + assignFunctionARB(glXCreateContextAttribs) + assignFunction(glXChooseFBConfig) + assignFunction(glXDestroyContext) + assignFunction(glXMakeCurrent) + assignFunction(glXSwapBuffers) } #endif // defined(USE_OPENGL) && defined(USE_X11) -- cgit v1.2.3-60-g2f50