mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-23 00:50:36 +02:00
swrast: Initialize tex_coords in handle_sample_op.
This commit is contained in:
parent
c1d361bd0b
commit
1e444c9960
1 changed files with 1 additions and 1 deletions
|
|
@ -279,7 +279,7 @@ handle_sample_op(GLcontext * ctx, struct atifs_machine *machine,
|
|||
/* sample from unit idx using texinst->src as coords */
|
||||
GLuint swizzle = texinst->swizzle;
|
||||
GLuint coord_source = texinst->src;
|
||||
GLfloat tex_coords[4];
|
||||
GLfloat tex_coords[4] = { 0 };
|
||||
|
||||
if (coord_source >= GL_TEXTURE0_ARB && coord_source <= GL_TEXTURE7_ARB) {
|
||||
coord_source -= GL_TEXTURE0_ARB;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue