nouveau: make stateobjs start off with refcount of 1
[mesa.git] / src / gallium / drivers / nv40 / nv40_state_blend.c
index 95e6d7394f466330452b988b6d73878b78528603..8cd05ce66ef858f138d0c9d064b9cbf2ed8e7af3 100644 (file)
@@ -28,6 +28,7 @@ nv40_state_blend_colour_validate(struct nv40_context *nv40)
                       (float_to_ubyte(bcol->color[2]) <<  0)));
 
        so_ref(so, &nv40->state.hw[NV40_STATE_BCOL]);
+       so_ref(NULL, &so);
        return TRUE;
 }