diff options
author | chai <chaifix@163.com> | 2021-10-28 10:39:31 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-10-28 10:39:31 +0800 |
commit | 8cbcd2dc3f7ea5a1d8656cd3885b553121cb7450 (patch) | |
tree | 216433c4e919ecac921e0d1eb3a96e19fc4fd032 /Editor/GUI/ContainerWindow.cpp | |
parent | d162d7711177c414e5ea9a3876dc6fa3414c937e (diff) |
*internal
Diffstat (limited to 'Editor/GUI/ContainerWindow.cpp')
-rw-r--r-- | Editor/GUI/ContainerWindow.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Editor/GUI/ContainerWindow.cpp b/Editor/GUI/ContainerWindow.cpp index 5f3e6f8..96e5a1b 100644 --- a/Editor/GUI/ContainerWindow.cpp +++ b/Editor/GUI/ContainerWindow.cpp @@ -265,16 +265,16 @@ bool ContainerWindow::SetRenderContext() if (m_RC && !g_IsGLInitialized) { log_info("Initialize OpenGL"); - wglMakeCurrent(m_DC, m_RC);
- if (!gladLoadGL()) {
- log_error("初始化GL错误");
- }
+ wglMakeCurrent(m_DC, m_RC); + if (!gladLoadGL()) { + log_error("初始化GL错误"); + } g_IsGLInitialized = true; } } // 初始化,创建窗口 -void ContainerWindow::Init(Rect pixelRect, int showMode, const Vector2& minSize, const Vector2& maxSize, std::string name) +void ContainerWindow::Init(Rect pixelRect, int showMode, const Internal::Vector2& minSize, const Internal::Vector2& maxSize, std::string name) { // Aux windows are mac only. on windows they look just like normal utility windows. if (showMode == kShowAuxWindow) @@ -343,7 +343,7 @@ void ContainerWindow::Init(Rect pixelRect, int showMode, const Vector2& minSize, // parentWindow = GetMainEditorWindow(); } - bool notSizeable = (minSize == maxSize) && (minSize != Vector2::zero); + bool notSizeable = (minSize == maxSize) && (minSize != Internal::Vector2::zero); if (notSizeable) windowStyle &= ~(WS_THICKFRAME); |