diff options
author | Emil Velikov <[email protected]> | 2017-06-20 15:22:39 +0100 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2017-06-26 12:40:22 +0100 |
commit | d42b09580a5270e8906dad4b923f320d1de18167 (patch) | |
tree | 9f333a6b2c2a875e6da62ba1fed1896d82440671 /src/egl/main/eglimage.h | |
parent | 860919a3b237386cba5b2951ae520bf6734fd17e (diff) |
egl: drop _eglInitImage() return type
Function cannot fail and always returns true.
v2: Inline the one line function in the header
Signed-off-by: Emil Velikov <[email protected]>
Reviewed-by: Eric Engestrom <[email protected]>
Diffstat (limited to 'src/egl/main/eglimage.h')
-rw-r--r-- | src/egl/main/eglimage.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/egl/main/eglimage.h b/src/egl/main/eglimage.h index eb66280ff96..eef98604e7a 100644 --- a/src/egl/main/eglimage.h +++ b/src/egl/main/eglimage.h @@ -96,8 +96,11 @@ _eglParseImageAttribList(_EGLImageAttribs *attrs, _EGLDisplay *dpy, const EGLint *attrib_list); -extern EGLBoolean -_eglInitImage(_EGLImage *img, _EGLDisplay *dpy); +static inline void +_eglInitImage(_EGLImage *img, _EGLDisplay *dpy) +{ + _eglInitResource(&img->Resource, sizeof(*img), dpy); +} /** |