fixed texture filtering not working properly