private void RegenerateAllMipMaps_Click(object sender, EventArgs e) { currentNut.ConvertToDdsNut(); // Refresh the textures. currentNut.RefreshGlTexturesByHashId(); glControl1.Invalidate(); }