mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
softpipe: return alpha=1 in shadow_compare() function
The alpha value wasn't set at all before so we got unpredictable results. Note that we don't currently obey GL_DEPTH_TEXTURE_MODE in the state tracker. For now, we return the result in the default mode (r,r,r,1).
This commit is contained in:
parent
8f382fd3f3
commit
0487656245
1 changed files with 2 additions and 0 deletions
|
|
@ -744,7 +744,9 @@ shadow_compare(uint compare_func,
|
|||
break;
|
||||
}
|
||||
|
||||
/* XXX returning result for default GL_DEPTH_TEXTURE_MODE = GL_LUMINANCE */
|
||||
rgba[0][j] = rgba[1][j] = rgba[2][j] = (float) k;
|
||||
rgba[3][j] = 1.0F;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue