mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 03:08:05 +02:00
swrast: return (0,0,0,1) when sampling incomplete textures, not (0,0,0,0)
Fixes piglit shaders/fp-incomplete-tex test.
This commit is contained in:
parent
e01a03d222
commit
1df62651b2
1 changed files with 4 additions and 2 deletions
|
|
@ -84,7 +84,8 @@ fetch_texel_lod( GLcontext *ctx, const GLfloat texcoord[4], GLfloat lambda,
|
|||
swizzle_texel(rgba, color, texObj->_Swizzle);
|
||||
}
|
||||
else {
|
||||
color[0] = color[1] = color[2] = color[3] = 0.0F;
|
||||
color[0] = color[1] = color[2] = 0.0F;
|
||||
color[3] = 1.0F;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -126,7 +127,8 @@ fetch_texel_deriv( GLcontext *ctx, const GLfloat texcoord[4],
|
|||
swizzle_texel(rgba, color, texObj->_Swizzle);
|
||||
}
|
||||
else {
|
||||
color[0] = color[1] = color[2] = color[3] = 0.0F;
|
||||
color[0] = color[1] = color[2] = 0.0F;
|
||||
color[3] = 1.0F;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue