summaryrefslogtreecommitdiff
path: root/Editor/GUI/GUIWindow.cpp
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-10-21 16:11:45 +0800
committerchai <chaifix@163.com>2021-10-21 16:11:45 +0800
commit998a13b08c43b0813d1d4d38692ea7f8bd31c936 (patch)
tree20ce144f9897c47d5840e34929ca32be8f2cc2c6 /Editor/GUI/GUIWindow.cpp
parentf2dcd16fc72e2f10c9504897bacf5c4c2ecff516 (diff)
*misc
Diffstat (limited to 'Editor/GUI/GUIWindow.cpp')
-rw-r--r--Editor/GUI/GUIWindow.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/Editor/GUI/GUIWindow.cpp b/Editor/GUI/GUIWindow.cpp
index 107a298..0502b21 100644
--- a/Editor/GUI/GUIWindow.cpp
+++ b/Editor/GUI/GUIWindow.cpp
@@ -45,10 +45,7 @@ LRESULT CALLBACK GUIWindow::GUIViewWndProc(HWND hWnd, UINT message, WPARAM wPara
{
log_info("WndProc", "WM_PAINT");
self->SetAsRenderContext();
- glEnable(GL_BLEND);
- glClearColor(1,0,0,1);
- glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
- glFlush();
+
BeginPaint(self->m_Handle, &ps);
EndPaint(self->m_Handle, &ps);
UpdateWindow(self->m_Handle);