mirror of
https://github.com/Drezil/imgui.git
synced 2024-11-22 20:07:01 +00:00
Fixed DirectX11 example.
This commit is contained in:
parent
b0ea57e518
commit
dd8a7655f5
@ -161,8 +161,8 @@ HRESULT InitDeviceD3D(HWND hWnd)
|
|||||||
{
|
{
|
||||||
ZeroMemory(&sd, sizeof(sd));
|
ZeroMemory(&sd, sizeof(sd));
|
||||||
sd.BufferCount = 2;
|
sd.BufferCount = 2;
|
||||||
sd.BufferDesc.Width = (UINT)ImGui::GetIO().DisplaySize.x;
|
sd.BufferDesc.Width = 0;
|
||||||
sd.BufferDesc.Height = (UINT)ImGui::GetIO().DisplaySize.y;
|
sd.BufferDesc.Height = 0;
|
||||||
sd.BufferDesc.Format = DXGI_FORMAT_R8G8B8A8_UNORM;
|
sd.BufferDesc.Format = DXGI_FORMAT_R8G8B8A8_UNORM;
|
||||||
sd.BufferDesc.RefreshRate.Numerator = 60;
|
sd.BufferDesc.RefreshRate.Numerator = 60;
|
||||||
sd.BufferDesc.RefreshRate.Denominator = 1;
|
sd.BufferDesc.RefreshRate.Denominator = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user