force_enable_vsync fix
This commit is contained in:
parent
8b7fdd1d83
commit
b8a489a6ec
|
|
@ -13,6 +13,10 @@ if(COMPILE_PLAYER OR COMPILE_STUDIO)
|
|||
|
||||
add_subdirectory(Common)
|
||||
|
||||
if(FORCE_ENABLE_VSYNC)
|
||||
target_compile_definitions(Common PUBLIC FORCE_ENABLE_VSYNC)
|
||||
endif()
|
||||
|
||||
if(COMPILE_PLAYER)
|
||||
add_subdirectory(Player)
|
||||
endif()
|
||||
|
|
|
|||
|
|
@ -119,6 +119,9 @@ namespace RNR
|
|||
|
||||
options["externalWindowHandle"] = getWindowHandle();
|
||||
options["FSAA"] = "4";
|
||||
#ifdef FORCE_ENABLE_VSYNC
|
||||
options["vsync"] = "true";
|
||||
#endif
|
||||
#if OGRE_PLATFORM == OGRE_PLATFORM_APPLE
|
||||
options["macAPI"] = "cocoa";
|
||||
options["macAPICocoaUseNSView"] = "true";
|
||||
|
|
|
|||
|
|
@ -16,12 +16,9 @@ if(WIN32)
|
|||
list(APPEND HEADER Resource/Windows/Script.rc)
|
||||
endif()
|
||||
|
||||
if(FORCE_ENABLE_VSYNC)
|
||||
target_compile_definitions(Studio PRIVATE FORCE_ENABLE_VSYNC)
|
||||
endif()
|
||||
|
||||
qt_add_executable(Studio ${SOURCE} ${HEADER})
|
||||
|
||||
|
||||
target_include_directories(Studio PRIVATE Header)
|
||||
target_link_libraries(Studio PRIVATE Common Engine)
|
||||
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@ MainWindow::MainWindow()
|
|||
ogreRoot = new Ogre::Root();
|
||||
Ogre::ConfigDialog* config = OgreBites::getNativeConfigDialog();
|
||||
ogreRoot->showConfigDialog(config);
|
||||
|
||||
ogreRoot->initialise(false);
|
||||
|
||||
menubar = new QMenuBar();
|
||||
|
|
|
|||
Loading…
Reference in New Issue