softpipe: fix xpot calculation typo in sp_get_samples_2d_nearest_clamp_POT

This commit is contained in:
Keith Whitwell
2009-08-20 18:13:25 +01:00
parent 1fd40e506c
commit 0d9979d9ec
+2 -2
View File
@@ -985,8 +985,8 @@ sp_get_samples_2d_nearest_clamp_POT(struct tgsi_sampler *tgsi_sampler,
const struct sp_shader_sampler *samp = sp_shader_sampler(tgsi_sampler);
unsigned j;
unsigned level = samp->level;
unsigned xpot = (1<<samp->xpot);
unsigned ypot = (1<<samp->ypot);
unsigned xpot = 1 << (samp->xpot - level);
unsigned ypot = 1 << (samp->ypot - level);
for (j = 0; j < QUAD_SIZE; j++) {
int c;