Ubuntu, as an operating system distributor, doesn't "deprecate" OpenGL in the same way a software developer might deprecate an API within their own library. Instead, it reflects the broader industry trends and the state of graphics technologies.
The short answer is: Ubuntu is highly unlikely to remove OpenGL support entirely in the foreseeable future (meaning, within the next 5-10+ years, if ever).
However, what is happening, and will continue to happen, is a gradual de-emphasis and transition away from OpenGL as the primary API for new development, in favor of more modern alternatives like Vulkan.
Here's a breakdown of why and what that means:
-
Massive Legacy Support:
- Millions of existing applications, especially games (both native Linux and Wine/Proton-run Windows games), professional software, and even many desktop environment components, rely heavily on OpenGL.
- Removing OpenGL support would break an enormous amount of software and cause a massive uproar in the Linux user base. Ubuntu's goal is usability and compatibility.
-
Vulkan is the Future for New High-Performance Graphics:
- Vulkan is the modern, lower-level, more explicit graphics API designed for modern GPU architectures. It offers significantly better performance (especially CPU overhead) and more control for developers.
- New high-performance games and demanding applications are increasingly being developed with Vulkan.
- Proton (Steam Play) heavily relies on Vulkan (via DXVK and VKD3D-Proton) to translate DirectX calls to Vulkan, enabling many Windows games to run efficiently on Linux.
-
Desktop Environments and Display Servers:
- Wayland, the modern display server that is gradually replacing X11, is designed with modern graphics APIs in mind. While it still supports OpenGL, the trend is towards Vulkan or OpenGL ES (the mobile version of OpenGL, often with better Wayland integration).
- GNOME and KDE, the major desktop environments, are also moving towards leveraging Vulkan or more efficient OpenGL ES contexts where possible, though they still use traditional OpenGL for many components.
-
Driver Support:
- GPU manufacturers (NVIDIA, AMD, Intel) provide excellent Vulkan drivers on Linux through Mesa (for AMD/Intel) and their proprietary drivers (NVIDIA).
- These drivers also maintain robust OpenGL support because of the legacy demand.
What "Deprecation" Would Look Like (and is already happening subtly):
Instead of a hard cutoff, you'll see:
- Decreased focus on OpenGL development: New features in drivers and toolkits will prioritize Vulkan.
- Encouragement for new software to use Vulkan: Documentation and development guides will steer developers towards Vulkan.
- Better out-of-the-box Vulkan support: Ubuntu will ensure all necessary Vulkan libraries and drivers are readily available and performant.
- Continued shift to Wayland: As Wayland matures and becomes the default (which it already is in recent Ubuntu versions with GNOME), the underlying graphics stack will naturally favor more modern APIs.
- OpenGL becoming a compatibility layer: Over time, if enough applications transition, OpenGL might primarily exist as a translation layer on top of Vulkan (similar to how Apple deprecated OpenGL/OpenCL in favor of Metal, but compatibility layers like MoltenVK exist).
Conclusion:
Ubuntu will likely continue to ship OpenGL libraries for the foreseeable future due to the immense amount of existing software that relies on it. There won't be a specific "deprecation date" where OpenGL is suddenly gone.
The shift is a slow, evolutionary process where Vulkan becomes the preferred API for new and demanding applications, while OpenGL remains available for compatibility with the vast legacy software ecosystem, eventually potentially as a translation layer itself.