Merge commit 'origin/gallium-draw-retval'
[mesa.git] / src / gallium / drivers / nv30 / nv30_state_blend.c
index a1b0100472d8dce681c2b3a4f438d87a605d0229..64cf9ae93a0a6018262be11a7b715900acc145b6 100644 (file)
@@ -7,7 +7,7 @@ nv30_state_blend_validate(struct nv30_context *nv30)
        return TRUE;
 }
 
-struct nv30_state_entry nv30_state_blend_new = {
+struct nv30_state_entry nv30_state_blend = {
        .validate = nv30_state_blend_validate,
        .dirty = {
                .pipe = NV30_NEW_BLEND,
@@ -28,6 +28,7 @@ nv30_state_blend_colour_validate(struct nv30_context *nv30)
                       (float_to_ubyte(bcol->color[2]) <<  0)));
 
        so_ref(so, &nv30->state.hw[NV30_STATE_BCOL]);
+       so_ref(NULL, &so);
        return TRUE;
 }