Merge pull request #13628 from jordan-woyak/unique-buffer-texture-data

Common and VideoCommon: Change texture data from std::vector to Common::UniqueBuffer.
This commit is contained in:
Admiral H. Curtiss
2025-05-04 14:03:10 +02:00
committed by GitHub
8 changed files with 36 additions and 33 deletions

View File

@ -85,7 +85,7 @@ void AchievementBox::UpdateData()
color = AchievementManager::GOLD;
else if (m_achievement->unlocked & RC_CLIENT_ACHIEVEMENT_UNLOCKED_SOFTCORE)
color = AchievementManager::BLUE;
QImage i_badge(&badge.data.front(), badge.width, badge.height, QImage::Format_RGBA8888);
QImage i_badge(badge.data.data(), badge.width, badge.height, QImage::Format_RGBA8888);
m_badge->setPixmap(
QPixmap::fromImage(i_badge).scaled(64, 64, Qt::KeepAspectRatio, Qt::SmoothTransformation));
m_badge->adjustSize();