diff options
author | Marek Olšák <[email protected]> | 2009-10-30 13:08:37 +0100 |
---|---|---|
committer | Joakim Sindholt <[email protected]> | 2009-10-31 07:30:48 +0100 |
commit | 11180b44717943d767b64f0b658f31b6c2594aa4 (patch) | |
tree | c1e34e2e97c329bb22afc1ccbb71390cf45d28cb /src/gallium/drivers/r300/r300_state.c | |
parent | ace78d90ded52d8fe4b3b077abf9a4db381dce16 (diff) |
r300g: remove unnecessary assertions
Also, correct typos in comments.
Diffstat (limited to 'src/gallium/drivers/r300/r300_state.c')
-rw-r--r-- | src/gallium/drivers/r300/r300_state.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/gallium/drivers/r300/r300_state.c b/src/gallium/drivers/r300/r300_state.c index 5db8c69dec9..1e7fabf683d 100644 --- a/src/gallium/drivers/r300/r300_state.c +++ b/src/gallium/drivers/r300/r300_state.c @@ -608,17 +608,14 @@ static void r300_set_viewport_state(struct pipe_context* pipe, r300->viewport_state->vte_control = R300_VTX_W0_FMT; if (state->scale[0] != 1.0f) { - assert(state->scale[0] != 0.0f); r300->viewport_state->xscale = state->scale[0]; r300->viewport_state->vte_control |= R300_VPORT_X_SCALE_ENA; } if (state->scale[1] != 1.0f) { - assert(state->scale[1] != 0.0f); r300->viewport_state->yscale = state->scale[1]; r300->viewport_state->vte_control |= R300_VPORT_Y_SCALE_ENA; } if (state->scale[2] != 1.0f) { - assert(state->scale[2] != 0.0f); r300->viewport_state->zscale = state->scale[2]; r300->viewport_state->vte_control |= R300_VPORT_Z_SCALE_ENA; } |