Don't compare uint with int

Explicitly cast uint to int to fix a warning.
This commit is contained in:
Martin Gräßlin 2012-05-24 11:16:33 +02:00
parent 812c310dcf
commit d0d274b855
2 changed files with 2 additions and 2 deletions

View file

@ -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);
}

View file

@ -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);
}