Fix cmake issue
This commit is contained in:
parent
857657d8a0
commit
9d5d400f7a
|
@ -10,7 +10,10 @@ OPTION(CRASH_HANDLER "Generate crash reports" ON)
|
||||||
OPTION(LUAJIT "Use lua jit" OFF)
|
OPTION(LUAJIT "Use lua jit" OFF)
|
||||||
SET(OPENGLES "OFF" CACHE "Use OpenGL ES 1.0 or 2.0 (for mobiles devices)" STRING)
|
SET(OPENGLES "OFF" CACHE "Use OpenGL ES 1.0 or 2.0 (for mobiles devices)" STRING)
|
||||||
SET(BUILD_REVISION "custom" CACHE "Git revision string (intended for releases)" STRING)
|
SET(BUILD_REVISION "custom" CACHE "Git revision string (intended for releases)" STRING)
|
||||||
SET(CMAKE_BUILD_TYPE "RelWithDebInfo" CACHE "Build type (Release, MinSizeRel, RelWithDebInfo or Debug)" STRING)
|
|
||||||
|
IF(NOT CMAKE_BUILD_TYPE)
|
||||||
|
SET(CMAKE_BUILD_TYPE "RelWithDebInfo")
|
||||||
|
ENDIF()
|
||||||
|
|
||||||
IF(CMAKE_SIZEOF_VOID_P EQUAL 8)
|
IF(CMAKE_SIZEOF_VOID_P EQUAL 8)
|
||||||
SET(ARCH_FLAGS "-m64 -march=x86-64 -mtune=generic")
|
SET(ARCH_FLAGS "-m64 -march=x86-64 -mtune=generic")
|
||||||
|
|
|
@ -181,8 +181,9 @@ void Application::run()
|
||||||
// first clock update
|
// first clock update
|
||||||
g_clock.update();
|
g_clock.update();
|
||||||
|
|
||||||
// show the application window
|
// show the application only after we draw some frames
|
||||||
g_window.show();
|
g_eventDispatcher.scheduleEvent([] { g_window.show(); }, 10);
|
||||||
|
|
||||||
|
|
||||||
while(!m_stopping) {
|
while(!m_stopping) {
|
||||||
// poll all events before rendering
|
// poll all events before rendering
|
||||||
|
|
Loading…
Reference in New Issue