When allocating uniform buffer an incorrect enum value was passed. Gladly both enums value were the same.