mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-29 13:20:54 +00:00
LiveCapture: specify bpl when creating RGB888 thumbnail
Qt rounds up the bpl to a multiple of 4 bytes, so this was crashing for me with odd sized thumbnails.
This commit is contained in:
committed by
Baldur Karlsson
parent
7ae6cc3c37
commit
8119f98c65
@@ -913,8 +913,9 @@ void LiveCapture::captureAdded(uint32_t ID, const QString &executable, const QSt
|
||||
cap->name = executable;
|
||||
cap->api = api;
|
||||
cap->timestamp = timestamp;
|
||||
cap->thumb = QImage(thumbnail.data(), thumbWidth, thumbHeight, QImage::Format_RGB888)
|
||||
.copy(0, 0, thumbWidth, thumbHeight);
|
||||
cap->thumb =
|
||||
QImage(thumbnail.data(), thumbWidth, thumbHeight, thumbWidth * 3, QImage::Format_RGB888)
|
||||
.copy(0, 0, thumbWidth, thumbHeight);
|
||||
cap->saved = false;
|
||||
cap->path = path;
|
||||
cap->local = local;
|
||||
|
||||
Reference in New Issue
Block a user