[Mesa-dev] [PATCH 3/5] mesa: replace _mesa_problem() with unreachable() in _mesa_convert_colors()
Timothy Arceri
tarceri at itsqueeze.com
Tue May 9 03:04:48 UTC 2017
---
src/mesa/main/image.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/mesa/main/image.c b/src/mesa/main/image.c
index a039b51..ad6b378 100644
--- a/src/mesa/main/image.c
+++ b/src/mesa/main/image.c
@@ -574,21 +574,21 @@ _mesa_convert_colors(GLenum srcType, const GLvoid *src,
UNCLAMPED_FLOAT_TO_USHORT(dst2[i][GCOMP], src4[i][GCOMP]);
UNCLAMPED_FLOAT_TO_USHORT(dst2[i][BCOMP], src4[i][BCOMP]);
UNCLAMPED_FLOAT_TO_USHORT(dst2[i][ACOMP], src4[i][ACOMP]);
}
}
if (useTemp)
memcpy(dst, tempBuffer, count * 4 * sizeof(GLushort));
}
break;
default:
- _mesa_problem(NULL, "Invalid datatype in _mesa_convert_colors");
+ unreachable("Invalid datatype in _mesa_convert_colors");
}
free(tempBuffer);
}
/**
* Perform basic clipping for glDrawPixels. The image's position and size
--
2.9.3
More information about the mesa-dev
mailing list