Skip to content
Snippets Groups Projects
Commit 17eda68d authored by Jesse Natalie's avatar Jesse Natalie Committed by Marge Bot
Browse files

egl/wgl: Fix some awkward sizeof formatting


Fixes: 3415bf02 ("egl: Add a basic Windows driver")
Suggested-by: default avatarMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Acked-by: default avatarDaniel Stone <daniels@collabora.com>
Acked-by: default avatarMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Acked-by: default avatarSidney Just <justsid@x-plane.com>
Acked-by: default avatarJason Ekstrand <jason.ekstrand@collabora.com>
Part-of: <mesa/mesa!12964>
parent efd2ae6c
No related branches found
No related tags found
No related merge requests found
...@@ -140,7 +140,7 @@ wgl_add_config(_EGLDisplay *disp, const struct stw_pixelformat_info *stw_config, ...@@ -140,7 +140,7 @@ wgl_add_config(_EGLDisplay *disp, const struct stw_pixelformat_info *stw_config,
return NULL; return NULL;
} }
else if (num_configs == 0) { else if (num_configs == 0) {
conf = calloc(1, sizeof * conf); conf = calloc(1, sizeof(*conf));
if (conf == NULL) if (conf == NULL)
return NULL; return NULL;
...@@ -233,7 +233,7 @@ wgl_initialize_impl(_EGLDisplay *disp, HDC hdc) ...@@ -233,7 +233,7 @@ wgl_initialize_impl(_EGLDisplay *disp, HDC hdc)
struct wgl_egl_display *wgl_dpy; struct wgl_egl_display *wgl_dpy;
const char* err; const char* err;
wgl_dpy = calloc(1, sizeof * wgl_dpy); wgl_dpy = calloc(1, sizeof(*wgl_dpy));
if (!wgl_dpy) if (!wgl_dpy)
return _eglError(EGL_BAD_ALLOC, "eglInitialize"); return _eglError(EGL_BAD_ALLOC, "eglInitialize");
...@@ -398,7 +398,7 @@ wgl_create_context(_EGLDisplay *disp, _EGLConfig *conf, ...@@ -398,7 +398,7 @@ wgl_create_context(_EGLDisplay *disp, _EGLConfig *conf,
struct wgl_egl_config *wgl_config = wgl_egl_config(conf); struct wgl_egl_config *wgl_config = wgl_egl_config(conf);
const struct stw_pixelformat_info *stw_config; const struct stw_pixelformat_info *stw_config;
wgl_ctx = malloc(sizeof * wgl_ctx); wgl_ctx = malloc(sizeof(*wgl_ctx));
if (!wgl_ctx) { if (!wgl_ctx) {
_eglError(EGL_BAD_ALLOC, "eglCreateContext"); _eglError(EGL_BAD_ALLOC, "eglCreateContext");
return NULL; return NULL;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment