diff options
author | Brian Paul <[email protected]> | 2016-01-06 11:48:52 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2016-01-06 15:53:47 -0700 |
commit | 85444ab08b8bd0f291101acf42620ffbaa8c77fb (patch) | |
tree | c282317a5a3870f9515fa7eac94ed74fb06ed55f /src | |
parent | 18038b9fd6792be794ae1be80e006542be602b2a (diff) |
st/mesa: replace bitmap size checks with assertion
The _mesa_Bitmap() caller already checks for zero-sized bitmaps.
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/state_tracker/st_cb_bitmap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/state_tracker/st_cb_bitmap.c b/src/mesa/state_tracker/st_cb_bitmap.c index 191f1443131..d8c3dbdd793 100644 --- 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 |