mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 07:18:17 +02:00
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>
This commit is contained in:
parent
b101a094b5
commit
b2a4573c14
1 changed files with 1 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue