mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
swrast: fix bad optimization check
This commit is contained in:
parent
0d8d904823
commit
84b24efe8d
1 changed files with 2 additions and 1 deletions
|
|
@ -604,7 +604,8 @@ texture_apply( const GLcontext *ctx,
|
|||
format = texUnit->_Current->DepthMode;
|
||||
}
|
||||
|
||||
if (texUnit->EnvMode != GL_REPLACE) {
|
||||
/* skip chan->float conversion when not needed */
|
||||
if (texUnit->EnvMode != GL_REPLACE || format != GL_RGBA) {
|
||||
/* convert GLchan colors to GLfloat */
|
||||
for (i = 0; i < n; i++) {
|
||||
rgba[i][RCOMP] = CHAN_TO_FLOAT(rgbaChan[i][RCOMP]);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue