Note about Qt UI only working on X11, needing to be thread-aware. Allocate tmp as an array instead.

This commit is contained in:
Sacha 2013-02-20 01:36:06 +10:00
parent b7d88f432c
commit b9a137d621
2 changed files with 4 additions and 2 deletions

View file

@ -1686,10 +1686,10 @@ void Debugger_DisplayList::UpdateVertexInfo()
VertexDecoder vtcDec;
vtcDec.SetVertexType(state.vertType);
u8* tmp = new u8(20*vtcDec.GetDecVtxFmt().stride);
u8* tmp = new u8[20*vtcDec.GetDecVtxFmt().stride];
vtcDec.DecodeVerts(tmp,Memory::GetPointer(vaddr),0,0,0,0,19);
VertexReader vtxRead(tmp,vtcDec.GetDecVtxFmt(),state.vertType);
delete tmp;
delete [] tmp;
for(int i = 0; i < maxVtxDisplay; i++)
{

View file

@ -23,6 +23,8 @@
const char *stateToLoad = NULL;
// TODO: Make this class thread-aware. Can't send events to a different thread. Currently only works on X11.
// Needs to use QueuedConnection for signals/slots.
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow),