summaryrefslogtreecommitdiffstats
path: root/NativeApp/src/Linux/LinuxMain.cpp
diff options
context:
space:
mode:
authorassiduous <assiduous@diligentgraphics.com>2019-12-30 19:36:59 +0000
committerassiduous <assiduous@diligentgraphics.com>2019-12-30 19:36:59 +0000
commit4b8c3f843df317a403476d271ff0188cf4c6b7b9 (patch)
tree5db9d77f40c2668b09beb442e470d6f9ff4277ee /NativeApp/src/Linux/LinuxMain.cpp
parentCMake: fixed dependencies of XCBKeySyms project (diff)
downloadDiligentTools-4b8c3f843df317a403476d271ff0188cf4c6b7b9.tar.gz
DiligentTools-4b8c3f843df317a403476d271ff0188cf4c6b7b9.zip
Fixed OpenGL initialization on Linux to not creat 2x-MS back buffer
Diffstat (limited to 'NativeApp/src/Linux/LinuxMain.cpp')
-rw-r--r--NativeApp/src/Linux/LinuxMain.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/NativeApp/src/Linux/LinuxMain.cpp b/NativeApp/src/Linux/LinuxMain.cpp
index 684493f..b5882bb 100644
--- a/NativeApp/src/Linux/LinuxMain.cpp
+++ b/NativeApp/src/Linux/LinuxMain.cpp
@@ -334,8 +334,13 @@ int x_main()
// The largest available depth buffer of at least GLX_DEPTH_SIZE size is preferred
GLX_DEPTH_SIZE, 24,
- //GLX_SAMPLE_BUFFERS, 1,
- GLX_SAMPLES, 1,
+ GLX_SAMPLE_BUFFERS, 0,
+
+ // Setting GLX_SAMPLES to 1 results in 2x MS backbuffer, which is
+ // against the spec that states:
+ // if GLX SAMPLE BUFFERS is zero, then GLX SAMPLES will also be zero
+ // GLX_SAMPLES, 1,
+
None
};
// clang-format on