blob: f9279d6236fcb373b30a6105ae34cfa45f8d3ddc (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
--- third_party/blink/renderer/platform/video_capture/video_capture_impl.cc.orig 2024-02-21 00:20:54 UTC
+++ third_party/blink/renderer/platform/video_capture/video_capture_impl.cc
@@ -679,7 +679,7 @@ bool VideoCaptureImpl::BindVideoFrameOnMediaTaskRunner
}
const unsigned texture_target =
-#if BUILDFLAG(IS_LINUX)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
// Explicitly set GL_TEXTURE_EXTERNAL_OES as the
// `media::VideoFrame::RequiresExternalSampler()` requires it for NV12
// format, while the `ImageTextureTarget()` will return GL_TEXTURE_2D.
|