projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c593ad6
)
Revert "egl: Unhide functionality in _eglInitSurface()"
author
Chia-I Wu
<olvaffe@gmail.com>
Wed, 19 Feb 2014 04:57:11 +0000
(12:57 +0800)
committer
Chia-I Wu
<olvaffe@gmail.com>
Wed, 19 Feb 2014 05:08:44 +0000
(13:08 +0800)
This reverts commit
498d10e230663f8604d00608cae6324f779c9cdd
.
_eglInitResource can and is supposed to be called on subclass objects.
Acked-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
src/egl/main/eglsurface.c
patch
|
blob
|
history
diff --git
a/src/egl/main/eglsurface.c
b/src/egl/main/eglsurface.c
index 1dca3e06876a03b37e5ed844ce319e939642a344..c5ea2245b3d41e7df2b52735f5cf48535c8fcc74 100644
(file)
--- a/
src/egl/main/eglsurface.c
+++ b/
src/egl/main/eglsurface.c
@@
-314,9
+314,7
@@
_eglInitSurface(_EGLSurface *surf, _EGLDisplay *dpy, EGLint type,
return EGL_FALSE;
}
-
- memset(surf, 0, sizeof(_EGLSurface));
- _eglInitResource(&surf->Resource, sizeof(_EGLResource), dpy);
+ _eglInitResource(&surf->Resource, sizeof(*surf), dpy);
surf->Type = type;
surf->Config = conf;