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:
Unknown W. Brackets committed 2018-02-19 09:09:35 -08:00
1 parent ecd1a04e44
commit 4b8d8c875d
13 files changed
+1 -126

No files matched your search

+1 -11
View File
@@ -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;
}