From: Marek Olšák Date: Wed, 13 Mar 2013 15:47:21 +0000 (+0100) Subject: mesa: handle HALF_FLOAT like FLOAT in get_tex_rgba X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b2a4573c14b04f11525dfd33971863ee3e00f995;p=mesa.git mesa: handle HALF_FLOAT like FLOAT in get_tex_rgba NOTE: This is a candidate for the stable branches. Reviewed-by: Brian Paul Tested-by: Brian Paul --- diff --git a/src/mesa/main/texgetimage.c b/src/mesa/main/texgetimage.c index 7299a4b23e9..74b09ef2c2d 100644 --- a/src/mesa/main/texgetimage.c +++ b/src/mesa/main/texgetimage.c @@ -518,6 +518,7 @@ get_tex_rgba(struct gl_context *ctx, GLuint dimensions, if (type_needs_clamping(type)) { /* the returned image type can't have negative values */ if (dataType == GL_FLOAT || + dataType == GL_HALF_FLOAT || dataType == GL_SIGNED_NORMALIZED || format == GL_LUMINANCE || format == GL_LUMINANCE_ALPHA) {