summaryrefslogtreecommitdiffstats
path: root/src/egl
diff options
context:
space:
mode:
authorChia-I Wu <olvaffe@gmail.com>2009-08-03 11:35:44 -0600
committerBrian Paul <brianp@vmware.com>2009-08-03 11:35:44 -0600
commit8a130a65aa7b0695c7d220f4ad6317ba1f64c6a6 (patch)
tree2e1a799a156f246dcddf7952364ef7d3c626c092 /src/egl
parent8cdc6c66f9d8ede00d02108070d269d3aca8b130 (diff)
downloadexternal_mesa3d-8a130a65aa7b0695c7d220f4ad6317ba1f64c6a6.zip
external_mesa3d-8a130a65aa7b0695c7d220f4ad6317ba1f64c6a6.tar.gz
external_mesa3d-8a130a65aa7b0695c7d220f4ad6317ba1f64c6a6.tar.bz2
egl: Correct the default values of surface attributes.
EGL_TEXTURE_FORMAT and EGL_TEXTURE_TARGET should default to EGL_NO_TEXTURE. Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
Diffstat (limited to 'src/egl')
-rw-r--r--src/egl/main/eglsurface.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/egl/main/eglsurface.c b/src/egl/main/eglsurface.c
index bd263fe..3947051 100644
--- a/src/egl/main/eglsurface.c
+++ b/src/egl/main/eglsurface.c
@@ -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;