summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Olšák <maraeo@gmail.com>2013-03-13 16:47:21 +0100
committerAndreas Boll <andreas.boll.dev@gmail.com>2013-04-17 12:57:10 +0200
commit9b3701351379a858ce0ce7bccf30d37f58d7dfc1 (patch)
tree4b3a6ad719fa0b40f1bd387c03b62d9a9bef0676
parentb89c2c7610a0c874b44fdb43abeca2472508f9db (diff)
mesa: handle HALF_FLOAT like FLOAT in get_tex_rgba
NOTE: This is a candidate for the stable branches. Reviewed-by: Brian Paul <brianp@vmware.com> Tested-by: Brian Paul <brianp@vmware.com> (cherry picked from commit b2a4573c14b04f11525dfd33971863ee3e00f995)
-rw-r--r--src/mesa/main/texgetimage.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/main/texgetimage.c b/src/mesa/main/texgetimage.c
index c06a4ab7e3..98efa4f211 100644
--- a/src/mesa/main/texgetimage.c
+++ b/src/mesa/main/texgetimage.c
@@ -438,6 +438,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) {