summaryrefslogtreecommitdiff
path: root/www/ungoogled-chromium/files/patch-ui_gl_gl__context.cc
blob: 6e4275291b8aab999e79f677a48d65e429865cf5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- ui/gl/gl_context.cc.orig	2023-12-23 12:33:28 UTC
+++ ui/gl/gl_context.cc
@@ -486,7 +486,7 @@ bool GLContext::MakeVirtuallyCurrent(
   DCHECK(virtual_context->IsCurrent(surface));
 
   if (switched_real_contexts || virtual_context != current_virtual_context_) {
-#if DCHECK_IS_ON()
+#if DCHECK_IS_ON() && !BUILDFLAG(IS_BSD)
     GLenum error = glGetError();
     // Accepting a context loss error here enables using debug mode to work on
     // context loss handling in virtual context mode.