Skip to content

Commit 1a460ca

Browse files
committed
Add an option to disable Sandbox and enable multisampling by default on Linux
1 parent da76777 commit 1a460ca

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ project(OverEngine
1010
DESCRIPTION "Opensource game engine under MIT license"
1111
LANGUAGES C CXX)
1212

13+
option(OVERENGINE_BUILD_SANDBOX "Build the Sandbox demo" ON)
14+
1315
# vendor
1416
option(GLFW_BUILD_DOCS OFF)
1517
add_subdirectory(OverEngine/vendor/GLFW)
@@ -29,4 +31,6 @@ add_subdirectory(OverEngine/vendor/wren)
2931
# OverEngine
3032
add_subdirectory(OverEngine)
3133
# add_subdirectory(OverEditor)
32-
add_subdirectory(Sandbox)
34+
if (OVERENGINE_BUILD_SANDBOX)
35+
add_subdirectory(Sandbox)
36+
endif()

OverEngine/src/Platform/Linux/LinuxWindow.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ namespace OverEngine
6060
#endif
6161
}
6262

63+
glfwWindowHint(GLFW_SAMPLES, 4);
64+
6365
m_Window = glfwCreateWindow((int)props.Width, (int)props.Height, m_Data.Title.c_str(), nullptr, nullptr);
6466
s_WindowCount++;
6567

0 commit comments

Comments
 (0)