Skip to content

egl: fix error string for dri2_create_image_dma_buf()

Simon Ser requested to merge emersion/mesa:egl-error-msg into main

Using dri2_create_image_khr_texture_error() here prints an error like so:

command: eglCreateImageKHR, error: EGL_BAD_ALLOC (0x3003), message: "dri2_create_image_khr_texture"

This is confusing, because dri2_create_image_khr_texture() is unrelated to this error.

Instead, print a more accurate error manually.

Signed-off-by: Simon Ser contact@emersion.fr

Merge request reports