PR #25122 opened by ambitiuswisdom
URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/25122
Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/25122.patch

`--enable-opengl` remained in `configure` after the OpenGL output device was 
removed. It no longer enables any build target and only performs an unnecessary 
OpenGL dependency check.

This change removes:

- the obsolete `--enable-opengl` option;
- OpenGL from the external library list;
- unused OpenGL header and function probes;
- the stale OpenGL maintainer entry;
- the removed device from the input/output device summary.


>From 42c5c72dc35efcd932ebaa805f9572ab4363cc40 Mon Sep 17 00:00:00 2001
From: Ruonan <[email protected]>
Date: Sat, 17 Oct 2026 01:28:23 +0800
Subject: [PATCH] configure: remove obsolete OpenGL option

The OpenGL output device was removed, but configure still exposed 
--enable-opengl and probed OpenGL headers and functions.

Remove the stale option, dependency checks, configure probes, and related 
device metadata.

Signed-off-by: Ruonan <[email protected]>
---
 MAINTAINERS               |  1 -
 configure                 | 12 ------------
 doc/general_contents.texi |  1 -
 3 files changed, 14 deletions(-)

diff --git a/MAINTAINERS b/MAINTAINERS
index af83ca8390..ffe5d6ecaa 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -322,7 +322,6 @@ libavdevice
   iec61883.c                            Georg Lippitsch
   lavfi                                 Stefano Sabatini
   libdc1394.c                           Roman Shaposhnik
-  opengl_enc.c                          Lukasz Marek
   pulse_audio_enc.c                     Lukasz Marek
   sdl                                   Stefano Sabatini
   sdl2.c                                Josh de Kock
diff --git a/configure b/configure
index c97ddb186f..c1f9ba3597 100755
--- a/configure
+++ b/configure
@@ -334,7 +334,6 @@ External library support:
   --enable-ohcodec         enable OpenHarmony Codec support [no]
   --enable-openal          enable OpenAL 1.1 capture support [no]
   --enable-opencl          enable OpenCL processing [no]
-  --enable-opengl          enable OpenGL rendering [no]
   --enable-openssl         enable openssl, needed for https support
                            if gnutls, libtls or mbedtls is not used [no]
   --enable-pocketsphinx    enable PocketSphinx, needed for asr filter [no]
@@ -2143,7 +2142,6 @@ EXTERNAL_LIBRARY_LIST="
     mediacodec
     ohcodec
     openal
-    opengl
     openssl
     pocketsphinx
     vapoursynth
@@ -2455,7 +2453,6 @@ HEADERS_LIST="
     dirent_h
     dxgidebug_h
     dxva_h
-    ES2_gl_h
     gsm_h
     io_h
     linux_dma_buf_h
@@ -2520,7 +2517,6 @@ SYSTEM_FUNCS="
     GetSystemTimeAsFileTime
     gettimeofday
     glob
-    glXGetProcAddress
     gmtime_r
     inet_aton
     ioctl
@@ -2562,7 +2558,6 @@ SYSTEM_FUNCS="
     usleep
     UTGetOSTypeFromString
     VirtualAlloc
-    wglGetProcAddress
 "
 
 SYSTEM_LIBRARIES="
@@ -7447,13 +7442,6 @@ enabled opencl            && { check_pkg_config opencl 
OpenCL CL/cl.h clEnqueueN
                              { test_cpp_condition "OpenCL/cl.h" 
"defined(CL_VERSION_1_2)" ||
                                test_cpp_condition "CL/cl.h" 
"defined(CL_VERSION_1_2)" ||
                                die "ERROR: opencl must be installed and 
version must be 1.2 or compatible"; }
-enabled opengl            && { check_lib opengl GL/glx.h glXGetProcAddress 
"-lGL" ||
-                               check_lib opengl windows.h wglGetProcAddress 
"-lopengl32 -lgdi32" ||
-                               check_lib opengl OpenGL/gl3.h glGetError 
"-framework OpenGL" ||
-                               check_lib opengl ES2/gl.h glGetError 
"-isysroot=${sysroot} -framework OpenGLES" ||
-                               die "ERROR: opengl not found."
-                             }
-
 enabled openssl           && { { check_pkg_config openssl "openssl >= 3.0.0" 
openssl/ssl.h DTLS_get_data_mtu &&
                                  { enabled gplv3 || ! enabled gpl || enabled 
nonfree || die "ERROR: OpenSSL >=3.0.0 requires --enable-version3"; }; } ||
                                { enabled gpl && ! enabled nonfree && die 
"ERROR: OpenSSL <3.0.0 is incompatible with the gpl"; } ||
diff --git a/doc/general_contents.texi b/doc/general_contents.texi
index 7032f140c6..397ce438a9 100644
--- a/doc/general_contents.texi
+++ b/doc/general_contents.texi
@@ -1638,7 +1638,6 @@ performance on systems without hardware floating point 
support).
 @item LIBCDIO           @tab X
 @item LIBDC1394         @tab X      @tab
 @item OpenAL            @tab X
-@item OpenGL            @tab        @tab X
 @item OSS               @tab X      @tab X
 @item PulseAudio        @tab X      @tab X
 @item SDL               @tab        @tab X
-- 
2.54.0

_______________________________________________
ffmpeg-devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to