gallium: no-op st_Bitmap() if width or height is zero

This commit is contained in:
Brian Paul
2008-05-08 17:11:05 -06:00
parent e93243cb80
commit 29d9f6b0d2

View File

@@ -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) {