From: Brian Paul Date: Thu, 8 May 2008 23:11:05 +0000 (-0600) Subject: gallium: no-op st_Bitmap() if width or height is zero X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=29d9f6b0d263b6ea2f89ea955d53d2671d9a6e43;p=mesa.git gallium: no-op st_Bitmap() if width or height is zero --- diff --git a/src/mesa/state_tracker/st_cb_bitmap.c b/src/mesa/state_tracker/st_cb_bitmap.c index f816e591042..56ca171a628 100644 --- a/src/mesa/state_tracker/st_cb_bitmap.c +++ b/src/mesa/state_tracker/st_cb_bitmap.c @@ -673,6 +673,9 @@ st_Bitmap(GLcontext *ctx, GLint x, GLint y, GLsizei width, GLsizei height, struct st_context *st = ctx->st; struct pipe_texture *pt; + if (width == 0 || height == 0) + return; + st_validate_state(st); if (!st->bitmap.vs) {