mirror of https://github.com/axmolengine/axmol.git
issue #2284: use GLuint to fix compiling error
This commit is contained in:
parent
ab8448e96b
commit
47f4aee3cc
|
@ -807,7 +807,7 @@ void CCTexture2D::setAliasTexParameters()
|
|||
|
||||
glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST );
|
||||
#if CC_ENABLE_CACHE_TEXTURE_DATA
|
||||
ccTexParams texParams = {m_bHasMipmaps?GL_NEAREST_MIPMAP_NEAREST:GL_NEAREST,GL_NEAREST,GL_NONE,GL_NONE};
|
||||
ccTexParams texParams = {(GLuint)(m_bHasMipmaps?GL_NEAREST_MIPMAP_NEAREST:GL_NEAREST),GL_NEAREST,GL_NONE,GL_NONE};
|
||||
VolatileTexture::setTexParameters(this, &texParams);
|
||||
#endif
|
||||
}
|
||||
|
@ -827,7 +827,7 @@ void CCTexture2D::setAntiAliasTexParameters()
|
|||
|
||||
glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR );
|
||||
#if CC_ENABLE_CACHE_TEXTURE_DATA
|
||||
ccTexParams texParams = {m_bHasMipmaps?GL_LINEAR_MIPMAP_NEAREST:GL_LINEAR,GL_LINEAR,GL_NONE,GL_NONE};
|
||||
ccTexParams texParams = {(GLuint)(m_bHasMipmaps?GL_LINEAR_MIPMAP_NEAREST:GL_LINEAR),GL_LINEAR,GL_NONE,GL_NONE};
|
||||
VolatileTexture::setTexParameters(this, &texParams);
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue