nv50: fix typo causing NULL-deref in nv50_resource_resolve
authorChristoph Bumiller <e0425955@student.tuwien.ac.at>
Fri, 4 May 2012 15:40:33 +0000 (17:40 +0200)
committerChristoph Bumiller <e0425955@student.tuwien.ac.at>
Fri, 4 May 2012 16:00:46 +0000 (18:00 +0200)
Introduced in b328949a37fee7b0f68ed3e068ffc4426c083042.

src/gallium/drivers/nv50/nv50_surface.c

index b38e49ffcc103d341457782cb3f3d89da7bf9084..15c88d5316d1bec880e7a25748c4fad41ce85c50 100644 (file)
@@ -711,7 +711,7 @@ nv50_blit_set_src(struct nv50_context *nv50,
    templ.swizzle_a = PIPE_SWIZZLE_ALPHA;
 
    nv50->textures[2][0] = nv50_create_sampler_view(pipe, res, &templ);
-   nv50->textures[2][0] = NULL;
+   nv50->textures[2][1] = NULL;
 
    nv50_blit_fixup_tic_entry(nv50->textures[2][0]);