mirror of
https://git.freebsd.org/ports.git
synced 2025-07-06 20:09:14 -04:00
11 lines
496 B
C++
11 lines
496 B
C++
--- ui/gl/gl_context.cc.orig 2022-11-30 08:12:58 UTC
|
|
+++ ui/gl/gl_context.cc
|
|
@@ -414,7 +414,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.
|