diff --git a/robosuite/renderers/context/egl_context.py b/robosuite/renderers/context/egl_context.py index 31b58355e7..1b509e6785 100644 --- a/robosuite/renderers/context/egl_context.py +++ b/robosuite/renderers/context/egl_context.py @@ -126,7 +126,7 @@ def __init__(self, max_width, max_height, device_id=0): "required for creating a headless rendering context." ) atexit.register(EGL.eglTerminate, EGL_DISPLAY) - EGL.eglChooseConfig(EGL_DISPLAY, EGL_ATTRIBUTES, config_ptr, config_size, num_configs) + EGL.eglChooseConfig(EGL_DISPLAY, EGL_ATTRIBUTES, ctypes.pointer(config_ptr), config_size, num_configs) if num_configs.value < 1: raise RuntimeError( "EGL failed to find a framebuffer configuration that matches the "