mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-04 13:23:49 +01:00
Qt: Remove old texture debug API.
No one's testing it and it's not the best way. We have a better implemented API and should use it instead.
This commit is contained in:
1 parent
ecd1a04e44
commit
4b8d8c875d
13 files changed
+1
-126
No files matched your search
@@ -54,17 +54,7 @@ void Debugger_MemoryTex::on_readBtn_clicked()
|
||||
w = std::max(bufW,w);
|
||||
uchar* newData = new uchar[w*h*4];
|
||||
|
||||
if(gpu->DecodeTexture(newData, state))
|
||||
{
|
||||
QImage img = QImage(newData, w, h, w*4, QImage::Format_ARGB32); // EmuThread_GrabBackBuffer();
|
||||
|
||||
QPixmap pixmap = QPixmap::fromImage(img);
|
||||
ui->textureImg->setPixmap(pixmap);
|
||||
ui->textureImg->setMinimumWidth(pixmap.width());
|
||||
ui->textureImg->setMinimumHeight(pixmap.height());
|
||||
ui->textureImg->setMaximumWidth(pixmap.width());
|
||||
ui->textureImg->setMaximumHeight(pixmap.height());
|
||||
}
|
||||
// TODO: Use GPU_GetCurrentTexture(). Warning: blocks.
|
||||
|
||||
delete[] newData;
|
||||
}
|
||||
Reference in new issue
Block a user