mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-10 23:20:14 +01:00
st/mesa: replace bitmap size checks with assertion
The _mesa_Bitmap() caller already checks for zero-sized bitmaps.
This commit is contained in:
parent
18038b9fd6
commit
85444ab08b
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue