Skip to content

Commit

Permalink
Fixed weather editor window creation
Browse files Browse the repository at this point in the history
  • Loading branch information
Xottab-DUTY committed Jul 30, 2018
1 parent dab1976 commit 76c7873
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/xrEngine/Device_Initialize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ void CRenderDevice::initialize_weather_editor()
m_editor_initialize(m_editor, m_engine);
VERIFY(m_editor);

//m_hWnd = m_editor->view_handle();
VERIFY(m_sdlWnd != INVALID_HANDLE_VALUE);
m_sdlWnd = SDL_CreateWindowFrom(m_editor->view_handle());
R_ASSERT3(m_sdlWnd, "Unable to create SDL window from editor", SDL_GetError());

GEnv.isEditor = true;
}
Expand All @@ -39,11 +39,11 @@ void CRenderDevice::Initialize()
TimerGlobal.Start();
TimerMM.Start();

R_ASSERT3(SDL_Init(SDL_INIT_VIDEO) == 0, "Unable to initialize SDL", SDL_GetError());

if (strstr(Core.Params, "-weather"))
initialize_weather_editor();

R_ASSERT3(SDL_Init(SDL_INIT_VIDEO) == 0, "Unable to initialize SDL", SDL_GetError());

if (!m_sdlWnd)
{
const Uint32 flags = SDL_WINDOW_BORDERLESS | SDL_WINDOW_HIDDEN |
Expand Down

0 comments on commit 76c7873

Please sign in to comment.