--- libplacebo-5.264.1/3rdparty/glad/glad/plugin.py.orig	2026-02-21 17:06:39.347659406 +0100
+++ libplacebo-5.264.1/3rdparty/glad/glad/plugin.py	2026-02-21 17:06:13.143611375 +0100
@@ -1,5 +1,5 @@
 import logging
-import pkg_resources
+from importlib.metadata import entry_points
 
 import glad.specification
 from glad.generator.c import CGenerator
@@ -32,7 +32,7 @@
 def find_generators(default=DEFAULT_GENERATORS, entry_point=GENERATOR_ENTRY_POINT):
     generators = dict(default)
 
-    for entry_point in pkg_resources.iter_entry_points(group=entry_point, name=None):
+    for entry_point in entry_points(group=entry_point, name=None):
         generators[entry_point.name] = entry_point.load()
         logger.debug('loaded language %s: %s', entry_point.name, generators[entry_point.name])
 
@@ -42,7 +42,7 @@
 def find_specifications(default=DEFAULT_SPECIFICATIONS, entry_point=SPECIFICATION_ENTRY_POINT):
     specifications = dict(default)
 
-    for entry_point in pkg_resources.iter_entry_points(group=entry_point, name=None):
+    for entry_point in entry_points(group=entry_point, name=None):
         specifications[entry_point.name] = entry_point.load()
         logger.debug('loaded specification %s: %s', entry_point.name, specifications[entry_point.name])
 
