* our record of the last state of the texture in gl
* @param record
*/
public static void applyFilter(final Texture texture, final TextureRecord texRecord, final int unit,
final TextureStateRecord record, final ContextCapabilities caps) {
final Type type = texture.getType();
final int magFilter = LwjglTextureUtil.getGLMagFilter(texture.getMagnificationFilter());
// set up magnification filter
if (!texRecord.isValid() || texRecord.magFilter != magFilter) {
checkAndSetUnit(unit, record, caps);