If I need to call CGapiSurface::CreateSurface more than once on the same instance. Do I need to call CGapiSurface::FreeSurface before that or CGapiSurface::CreateSurface takes care of freeing the previously allocated surface?
Calling CGapiSurface::CreateSurface multiple times
CreateSurface takes care of freeing the previously allocated surface, you can call it as many times as you want.