From 4b8c3f843df317a403476d271ff0188cf4c6b7b9 Mon Sep 17 00:00:00 2001 From: assiduous Date: Mon, 30 Dec 2019 11:36:59 -0800 Subject: Fixed OpenGL initialization on Linux to not creat 2x-MS back buffer --- NativeApp/src/Linux/LinuxMain.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'NativeApp/src/Linux/LinuxMain.cpp') 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 -- cgit v1.2.3