From 976093d9feb2c0b2cad2b464c89bfa279ffb5200 Mon Sep 17 00:00:00 2001 From: Spirrwell Date: Tue, 10 Jan 2023 10:32:48 -0500 Subject: [PATCH] [example1/opengl] Don't enable GL_POLYGON_SMOOTH and GL_MULTISAMPLE GL_POLYGON_SMOOTH appears to have inconsistent behavior across drivers, and seems to cause issues for at least me on Linux with my graphics card. According to Grim, it sounds like multisampling was enabled specifically for this as well, and so we no longer enable GL_MULTISAMPLE either --- examples/example1/src/widgets/opengl.d | 3 --- 1 file changed, 3 deletions(-) diff --git a/examples/example1/src/widgets/opengl.d b/examples/example1/src/widgets/opengl.d index ef96b2fe..66c46e23 100644 --- a/examples/example1/src/widgets/opengl.d +++ b/examples/example1/src/widgets/opengl.d @@ -163,9 +163,6 @@ class OpenGLExample : VerticalLayout { return; } - checkgl!glEnable(GL_MULTISAMPLE); - checkgl!glEnable(GL_POLYGON_SMOOTH); - checkgl!glEnable(GL_CULL_FACE); checkgl!glEnable(GL_DEPTH_TEST); checkgl!glCullFace(GL_BACK);