texture2d: correct no-mipmap texture generation

Previously using MIN/MAG other than LINEAR or NEAREST with no-mipmap textures
would fail due to texture incompleteness.