Opened up my personal project earlier today and ran into a nasty crash when trying to load an instance of my proxy texture asset class. The crash was occurring here:
void* Data = RHILockTexture2D(DynamicResource->GetTexture2DRHI(), 0, RLM_WriteOnly, Stride, false);
DynamicResource was valid, all looked okay, until I could see further in that the result of
GetTexture2DRHI was not valid, even though I'd already called to initialize the resource beforehand. What was going on?