mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Note about Qt UI only working on X11, needing to be thread-aware. Allocate tmp as an array instead.
This commit is contained in:
parent
b7d88f432c
commit
b9a137d621
2 changed files with 4 additions and 2 deletions
|
@ -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++)
|
||||
{
|
||||
|
|
|
@ -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),
|
||||
|
|
Loading…
Add table
Reference in a new issue