egl: initialize dri error code variables

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30619>
This commit is contained in:
Mike Blumenkrantz
2024-08-16 12:25:59 -04:00
committed by Marge Bot
parent a3de3a4501
commit af3df1133b
+2 -2
View File
@@ -2051,7 +2051,7 @@ dri2_create_image_khr_texture(_EGLDisplay *disp, _EGLContext *ctx,
_EGLImageAttribs attrs;
GLuint depth;
GLenum gl_target;
unsigned error;
unsigned error = __DRI_IMAGE_ERROR_SUCCESS;
if (texture == 0) {
_eglError(EGL_BAD_PARAMETER, "dri2_create_image_khr");
@@ -2511,7 +2511,7 @@ dri2_create_image_dma_buf(_EGLDisplay *disp, _EGLContext *ctx,
int pitches[DMA_BUF_MAX_PLANES];
int offsets[DMA_BUF_MAX_PLANES];
uint64_t modifier;
unsigned error;
unsigned error = __DRI_IMAGE_ERROR_SUCCESS;
EGLint egl_error;
/**