diff options
author | nobled <[email protected]> | 2011-10-17 21:34:44 +0000 |
---|---|---|
committer | nobled <[email protected]> | 2011-12-08 21:20:25 +0000 |
commit | f22421e9b9ae08512d02927c85e8a7c69867856f (patch) | |
tree | eec4c0ec9cb36d47528e401695ef3e76935a5fa5 /src/mesa/.gitignore | |
parent | 37fd22a09166c27c47e4803f5ee14047ee03856d (diff) |
mesa/image: assert on bad format
NULL as an error indicator is meaningless, since it will return NULL
on success anyway if the caller passes in zero as the image's address
and asks to calculate the offset of the first pixel. For example,
_mesa_validate_pbo_access() does this.
This also matches the code in the non-GL_BITMAP codepath, which
already has an assert like this.
v2: Per Brian Paul's review, remove the function call entirely
and tighten the assert to only accept the two formats compatible with
GL_BITMAP. They always have one component per pixel.
Reviewed-by: Brian Paul <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa/.gitignore')
0 files changed, 0 insertions, 0 deletions