nouveau: make stateobjs start off with refcount of 1
[mesa.git] / src / gallium / drivers / nv30 / nv30_state_stipple.c
index 41b42813b496c505aafb1a1271976f3c6c68bbea..d0c791ac0821648337f0b367bf45b189410211f5 100644 (file)
@@ -27,6 +27,7 @@ nv30_state_stipple_validate(struct nv30_context *nv30)
        }
 
        so_ref(so, &nv30->state.hw[NV30_STATE_STIPPLE]);
+       so_ref(NULL, &so);
        return TRUE;
 }