(library_dir)
Ensures that GL and GLEW symbols are available on Linux.
Ensures that GL and GLEW symbols are available on Linux.
Ensures that GL and GLEW symbols are available on Linux .
def _maybe_load_linux_dynamic_deps(library_dir):
  """Ensures that GL and GLEW symbols are available on Linux."""
  interpreter_symbols = ctypes.cdll.LoadLibrary("")
  if not hasattr(interpreter_symbols, "glewInit"):
    # This means our interpreter is not yet linked against GLEW.
    if _render.BACKEND == "osmesa":
      libglew_path = os.path.join(library_dir, "libglewosmesa.so")
    elif _render.BACKEND == "egl":
      libglew_path = os.path.join(library_dir, "libglewegl.so")
    else:
      libglew_path = ctypes.util.find_library("GLEW")
    ctypes.CDLL(libglew_path, ctypes.RTLD_GLOBAL)
def _maybe_load_linux_dynamic_deps ( library_dir ) : interpreter_symbols = ctypes . cdll . LoadLibrary ( "" ) if not hasattr ( interpreter_symbols , "glewInit" ) : # This means our interpreter is not yet linked against GLEW. if _render . BACKEND == "osmesa" : libglew_path = os . path . join ( library_dir , "libglewosmesa.so" ) elif _render . BACKEND == "egl" : libglew_path = os . path . join ( library_dir , "libglewegl.so" ) else : libglew_path = ctypes . util . find_library ( "GLEW" ) ctypes . CDLL ( libglew_path , ctypes . RTLD_GLOBAL )