[Mesa-dev] [PATCH] Move the format and type check before select_tex_image.

2011-12-23 Thread jian . j . zhao
From: Jian Zhao jian.j.z...@intel.com Move the format and type check before select_tex_image, or it will fail to report the mismatch error if the teximage is null. Reported-by: Anuj Phogat anuj.pho...@gmail.com Signed-off-by: Jian Zhao jian.j.z...@intel.com Reviewed-by: Yuanhan Liu

[Mesa-dev] [PATCH] Move the format and type check before select_tex_image, or it will

2011-12-21 Thread jian . j . zhao
From: Jian Zhao jian.j.z...@intel.com Reported-by: Anuj Phogat anuj.pho...@gmail.com Signed-off-by: Jian Zhao jian.j.z...@intel.com Reviewed-by: Yuanhan Liu yuanhan@linux.intel.com --- src/mesa/main/texgetimage.c | 12 ++-- 1 files changed, 6 insertions(+), 6 deletions(-) diff

[Mesa-dev] [PATCH] Add mismatch check for glGetTexImage or it will return -1 and may lead to segment fault.

2011-12-12 Thread jian . j . zhao
From: Jian Zhao jian.j.z...@intel.com --- src/mesa/main/texgetimage.c |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/src/mesa/main/texgetimage.c b/src/mesa/main/texgetimage.c index ae0d51f..3f24187 100644 --- a/src/mesa/main/texgetimage.c +++