Merge pull request #187 from heroboy/patch-1

Examples: DirectX9: Set shaders to NULL to enforce using fixed pipeline.
This commit is contained in:
omar 2015-04-07 12:55:12 +01:00
commit 7c9739c67f

View File

@ -57,7 +57,8 @@ static void ImGui_ImplDX9_RenderDrawLists(ImDrawList** const cmd_lists, int cmd_
} }
} }
g_pVB->Unlock(); g_pVB->Unlock();
g_pd3dDevice->SetPixelShader(NULL);
g_pd3dDevice->SetVertexShader(NULL);
g_pd3dDevice->SetStreamSource( 0, g_pVB, 0, sizeof( CUSTOMVERTEX ) ); g_pd3dDevice->SetStreamSource( 0, g_pVB, 0, sizeof( CUSTOMVERTEX ) );
g_pd3dDevice->SetFVF( D3DFVF_CUSTOMVERTEX ); g_pd3dDevice->SetFVF( D3DFVF_CUSTOMVERTEX );