OSDN Git Service

egl: Correct the default values of surface attributes.
authorChia-I Wu <olvaffe@gmail.com>
Mon, 3 Aug 2009 17:35:44 +0000 (11:35 -0600)
committerBrian Paul <brianp@vmware.com>
Mon, 3 Aug 2009 17:35:44 +0000 (11:35 -0600)
EGL_TEXTURE_FORMAT and EGL_TEXTURE_TARGET should default to
EGL_NO_TEXTURE.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
src/egl/main/eglsurface.c

index bd263fe..3947051 100644 (file)
@@ -26,7 +26,8 @@ _eglInitSurface(_EGLDriver *drv, _EGLSurface *surf, EGLint type,
 {
    const char *func;
    EGLint width = 0, height = 0, largest = 0;
-   EGLint texFormat = 0, texTarget = 0, mipmapTex = 0;
+   EGLint texFormat = EGL_NO_TEXTURE, texTarget = EGL_NO_TEXTURE;
+   EGLint mipmapTex = EGL_FALSE;
    EGLint renderBuffer = EGL_BACK_BUFFER;
 #ifdef EGL_VERSION_1_2
    EGLint colorspace = EGL_COLORSPACE_sRGB;