aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorStapleButter <thetotalworm@gmail.com>2017-09-30 23:17:36 +0200
committerStapleButter <thetotalworm@gmail.com>2017-09-30 23:17:36 +0200
commit9ad89d8cb5f3e1914bb008bd1a63733920c09e9b (patch)
tree4a3110db51aa46971ff939786a6fb9a9f65623ec /src
parentab9800fbac335271d6aa8d44948bd06cfaaa1edd (diff)
fix crash under Windows 10
Diffstat (limited to 'src')
-rw-r--r--src/libui_sdl/libui/windows/draw.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libui_sdl/libui/windows/draw.cpp b/src/libui_sdl/libui/windows/draw.cpp
index 11ee048..84b43c5 100644
--- a/src/libui_sdl/libui/windows/draw.cpp
+++ b/src/libui_sdl/libui/windows/draw.cpp
@@ -534,13 +534,13 @@ uiDrawBitmap* uiDrawNewBitmap(uiDrawContext* c, int width, int height)
bp2.dpiY = 0;
bp2.pixelFormat = D2D1::PixelFormat(DXGI_FORMAT_B8G8R8A8_UNORM, D2D1_ALPHA_MODE_IGNORE);
- c->rt->BeginDraw();
+ //c->rt->BeginDraw();
hr = c->rt->CreateBitmap(D2D1::SizeU(width,height), NULL, 0, &bp2, &bmp->bmp);
if (hr != S_OK)
logHRESULT(L"error creating bitmap", hr);
- c->rt->EndDraw();
+ //c->rt->EndDraw();
bmp->Width = width;
bmp->Height = height;