mirror of
https://git.freebsd.org/ports.git
synced 2025-07-02 10:00:37 -04:00
Security: https://vuxml.freebsd.org/freebsd/5c777f88-40ff-4e1e-884b-ad63dfb9bb15.html Security: https://vuxml.freebsd.org/freebsd/9c91e1f8-f255-4b57-babe-2e385558f1dc.html
11 lines
496 B
C++
11 lines
496 B
C++
--- ui/gl/gl_context.cc.orig 2025-07-02 06:08:04 UTC
|
|
+++ ui/gl/gl_context.cc
|
|
@@ -517,7 +517,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.
|