Mesa (master): mesa: handle HALF_FLOAT like FLOAT in get_tex_rgba
Marek Olšák
mareko at kemper.freedesktop.org
Sat Mar 23 13:01:57 UTC 2013
Module: Mesa
Branch: master
Commit: b2a4573c14b04f11525dfd33971863ee3e00f995
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b2a4573c14b04f11525dfd33971863ee3e00f995
Author: Marek Olšák <maraeo at gmail.com>
Date: Wed Mar 13 16:47:21 2013 +0100
mesa: handle HALF_FLOAT like FLOAT in get_tex_rgba
NOTE: This is a candidate for the stable branches.
Reviewed-by: Brian Paul <brianp at vmware.com>
Tested-by: Brian Paul <brianp at vmware.com>
---
src/mesa/main/texgetimage.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/src/mesa/main/texgetimage.c b/src/mesa/main/texgetimage.c
index 7299a4b..74b09ef 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) {
More information about the mesa-commit
mailing list