Module: Mesa
Branch: master
Commit: 924490a747f7ee192815c7f9872a05f66243e9df
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=924490a747f7ee192815c7f9872a05f66243e9df

Author: Chia-I Wu <olva...@gmail.com>
Date:   Wed Feb 19 12:57:11 2014 +0800

Revert "egl: Unhide functionality in _eglInitSurface()"

This reverts commit 498d10e230663f8604d00608cae6324f779c9cdd.
_eglInitResource can and is supposed to be called on subclass objects.

Acked-by: Juha-Pekka Heikkila <juhapekka.heikk...@gmail.com>

---

 src/egl/main/eglsurface.c |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/egl/main/eglsurface.c b/src/egl/main/eglsurface.c
index 1dca3e0..c5ea224 100644
--- 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;
 

_______________________________________________
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to