a little patch for Windows before 1.92
This commit is contained in:
parent
5c1e4991d5
commit
e757ccec55
|
@ -211,13 +211,11 @@ void ImGui_ImplDX9_RenderDrawData(ImDrawData* draw_data)
|
||||||
unsigned short* idx_dst;
|
unsigned short* idx_dst;
|
||||||
if (bd->pVB->Lock(0, (UINT)(draw_data->TotalVtxCount * sizeof(CUSTOMVERTEX)), (void**)&vtx_dst, D3DLOCK_DISCARD) < 0)
|
if (bd->pVB->Lock(0, (UINT)(draw_data->TotalVtxCount * sizeof(CUSTOMVERTEX)), (void**)&vtx_dst, D3DLOCK_DISCARD) < 0)
|
||||||
{
|
{
|
||||||
state_block->Release();
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (bd->pIB->Lock(0, (UINT)(draw_data->TotalIdxCount * sizeof(unsigned short)), (void**)&idx_dst, D3DLOCK_DISCARD) < 0)
|
if (bd->pIB->Lock(0, (UINT)(draw_data->TotalIdxCount * sizeof(unsigned short)), (void**)&idx_dst, D3DLOCK_DISCARD) < 0)
|
||||||
{
|
{
|
||||||
bd->pVB->Unlock();
|
bd->pVB->Unlock();
|
||||||
state_block->Release();
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue