mirror of
https://git.freebsd.org/ports.git
synced 2025-07-04 10:59:14 -04:00
Approved by: rene (mentor, implicit) Security: https://vuxml.freebsd.org/freebsd/246174d3-e979-11ed-8290-a8a1599412c6.html
11 lines
496 B
C++
11 lines
496 B
C++
--- ui/gl/gl_context.cc.orig 2023-04-28 17:01:32 UTC
|
|
+++ ui/gl/gl_context.cc
|
|
@@ -443,7 +443,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.
|