Skip to content

Commit

Permalink
Merge pull request #9 from finger563/feature/updated-deprecated-platf…
Browse files Browse the repository at this point in the history
…ormdata

fix: replace deprecated accessors
  • Loading branch information
finger563 committed Jul 30, 2023
2 parents 690fc4b + cb27b31 commit 6d0350d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/RtspDisplay/RtspClientComponent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@ void URtspClientComponent::TickComponent(float DeltaTime, enum ELevelTick TickTy
// create a texture
auto texture = UTexture2D::CreateTransient(width, height, PF_B8G8R8A8);
// lock the texture
uint8 *mip_data = static_cast<uint8 *>(texture->PlatformData->Mips[0].BulkData.Lock(LOCK_READ_WRITE));
uint8 *mip_data = static_cast<uint8 *>(texture->GetPlatformData()->Mips[0].BulkData.Lock(LOCK_READ_WRITE));
// copy the jpeg data into the texture
std::copy(data.data(), data.data() + data.size(), mip_data);
// unlock the texture
texture->PlatformData->Mips[0].BulkData.Unlock();
texture->GetPlatformData()->Mips[0].BulkData.Unlock();
// update the texture
texture->UpdateResource();
// broadcast the texture
Expand Down

0 comments on commit 6d0350d

Please sign in to comment.