mirror of
https://git.freebsd.org/ports.git
synced 2025-04-29 01:56:37 -04:00
Security: https://vuxml.freebsd.org/freebsd/c53cd328-8131-4fc2-a083-a9e9d45e3028.html Security: https://vuxml.freebsd.org/freebsd/756839e1-cd78-4082-9f9e-d0da616ca8dd.html
11 lines
496 B
C++
11 lines
496 B
C++
--- ui/gl/gl_context.cc.orig 2025-01-15 09:18:26 UTC
|
|
+++ ui/gl/gl_context.cc
|
|
@@ -516,7 +516,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.
|