From: Brian Paul Date: Wed, 6 Jan 2016 18:48:52 +0000 (-0700) Subject: st/mesa: replace bitmap size checks with assertion X-Git-Tag: upstream/17.1.0~13387 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=85444ab08b8bd0f291101acf42620ffbaa8c77fb;p=platform%2Fupstream%2Fmesa.git st/mesa: replace bitmap size checks with assertion The _mesa_Bitmap() caller already checks for zero-sized bitmaps. --- diff --git a/src/mesa/state_tracker/st_cb_bitmap.c b/src/mesa/state_tracker/st_cb_bitmap.c index 191f144..d8c3dbd 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