projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
18038b9
)
st/mesa: replace bitmap size checks with assertion
author
Brian Paul
<brianp@vmware.com>
Wed, 6 Jan 2016 18:48:52 +0000
(11:48 -0700)
committer
Brian Paul
<brianp@vmware.com>
Wed, 6 Jan 2016 22:53:47 +0000
(15:53 -0700)
The _mesa_Bitmap() caller already checks for zero-sized bitmaps.
src/mesa/state_tracker/st_cb_bitmap.c
patch
|
blob
|
history
diff --git
a/src/mesa/state_tracker/st_cb_bitmap.c
b/src/mesa/state_tracker/st_cb_bitmap.c
index 191f1443131f356460baf0290de5eadfa240537d..d8c3dbdd79378c26cd8c4a5dd6af54160cb3fe8c 100644
(file)
--- a/
src/mesa/state_tracker/st_cb_bitmap.c
+++ b/
src/mesa/state_tracker/st_cb_bitmap.c
@@
-619,8
+619,8
@@
st_Bitmap(struct gl_context *ctx, GLint x, GLint y,
struct st_context *st = st_context(ctx);
struct pipe_resource *pt;
- if (width == 0 || height == 0)
-
return
;
+ assert(width > 0);
+
assert(height > 0)
;
/* We only need to validate state of the st dirty flags are set or
* any non-_NEW_PROGRAM_CONSTANTS mesa flags are set. The VS we use