Source/ThirdParty/ANGLE/src/libGLESv2/Texture.cpp
bool Texture::setMinFilter(GLenum filter)
{
    switch (filter)
    {
      case GL_NEAREST:
      case GL_LINEAR:
      case GL_NEAREST_MIPMAP_NEAREST:
      case GL_LINEAR_MIPMAP_NEAREST:
      case GL_NEAREST_MIPMAP_LINEAR:
      case GL_LINEAR_MIPMAP_LINEAR:
        {
            if (mMinFilter != filter)
            {
                mMinFilter = filter;
                mDirty = true;
            }
            return true;
        }
      default:
        return false;
    }
}
// Returns true on successful filter state update (valid enum parameter)
Returns true on successful filter state update (valid enum parameter)
Returns true on successful filter state update ( valid enum parameter )
bool Texture::setMinFilter(GLenum filter)
{
    switch (filter)
    {
      case GL_NEAREST:
      case GL_LINEAR:
      case GL_NEAREST_MIPMAP_NEAREST:
      case GL_LINEAR_MIPMAP_NEAREST:
      case GL_NEAREST_MIPMAP_LINEAR:
      case GL_LINEAR_MIPMAP_LINEAR:
        {
            if (mMinFilter != filter)
            {
                mMinFilter = filter;
                mDirty = true;
            }
            return true;
        }
      default:
        return false;
    }
}
bool Texture :: setMinFilter ( GLenum filter ) { switch ( filter ) { case GL_NEAREST : case GL_LINEAR : case GL_NEAREST_MIPMAP_NEAREST : case GL_LINEAR_MIPMAP_NEAREST : case GL_NEAREST_MIPMAP_LINEAR : case GL_LINEAR_MIPMAP_LINEAR : { if ( mMinFilter != filter ) { mMinFilter = filter ; mDirty = true ; } return true ; } default : return false ; } }
Returns true on successful filter state update (valid enum parameter)
Returns true on successful filter state update ( valid enum parameter )