From e3586f7dbf3283e67575e8f740464172f5cb9a8c Mon Sep 17 00:00:00 2001 From: Xaver Hugl Date: Wed, 21 Dec 2022 21:20:04 +0100 Subject: [PATCH] fix some warnings --- src/effects/tileseditor/tileseditoreffect.h | 2 +- src/libkwineffects/kwingltexture.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/effects/tileseditor/tileseditoreffect.h b/src/effects/tileseditor/tileseditoreffect.h index f7fe2a5423..fdd1059088 100644 --- a/src/effects/tileseditor/tileseditoreffect.h +++ b/src/effects/tileseditor/tileseditoreffect.h @@ -20,7 +20,7 @@ public: TilesEditorEffect(); ~TilesEditorEffect() override; - void reconfigure(ReconfigureFlags); + void reconfigure(ReconfigureFlags) override; int animationDuration() const; void setAnimationDuration(int duration); diff --git a/src/libkwineffects/kwingltexture.cpp b/src/libkwineffects/kwingltexture.cpp index 6227f7522a..38edb5468b 100644 --- a/src/libkwineffects/kwingltexture.cpp +++ b/src/libkwineffects/kwingltexture.cpp @@ -740,11 +740,11 @@ QImage GLTexture::toImage() const GLint currentTextureBinding; glGetIntegerv(GL_TEXTURE_BINDING_2D, ¤tTextureBinding); - if (currentTextureBinding != texture()) { + if (GLuint(currentTextureBinding) != texture()) { glBindTexture(GL_TEXTURE_2D, texture()); } glGetTexImage(GL_TEXTURE_2D, 0, GL_RGBA, GL_UNSIGNED_INT_8_8_8_8_REV, ret.bits()); - if (currentTextureBinding != texture()) { + if (GLuint(currentTextureBinding) != texture()) { glBindTexture(GL_TEXTURE_2D, currentTextureBinding); } return ret;