From d0d274b855dc9b49bb5b0dd841b61b4ce75b5ec9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Thu, 24 May 2012 11:16:33 +0200 Subject: [PATCH] Don't compare uint with int Explicitly cast uint to int to fix a warning. --- effects/blur/blurshader.cpp | 2 +- lanczosfilter.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/effects/blur/blurshader.cpp b/effects/blur/blurshader.cpp index 18a3e1b649..1564c5a7f2 100644 --- a/effects/blur/blurshader.cpp +++ b/effects/blur/blurshader.cpp @@ -396,7 +396,7 @@ void ARBBlurShader::unbind() #ifndef KWIN_HAVE_OPENGLES int boundObject; glGetProgramivARB(GL_FRAGMENT_PROGRAM_ARB, GL_PROGRAM_BINDING_ARB, &boundObject); - if (boundObject == program) { + if (boundObject == (int)program) { glBindProgramARB(GL_FRAGMENT_PROGRAM_ARB, 0); glDisable(GL_FRAGMENT_PROGRAM_ARB); } diff --git a/lanczosfilter.cpp b/lanczosfilter.cpp index 9b8834d417..9b357ac19e 100644 --- a/lanczosfilter.cpp +++ b/lanczosfilter.cpp @@ -582,7 +582,7 @@ void LanczosShader::unbind() else { int boundObject; glGetProgramivARB(GL_FRAGMENT_PROGRAM_ARB, GL_PROGRAM_BINDING_ARB, &boundObject); - if (boundObject == m_arbProgram) { + if (boundObject == (int)m_arbProgram) { glBindProgramARB(GL_FRAGMENT_PROGRAM_ARB, 0); glDisable(GL_FRAGMENT_PROGRAM_ARB); }