Don't compare uint with int
Explicitly cast uint to int to fix a warning.
This commit is contained in:
parent
812c310dcf
commit
d0d274b855
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue