meta: Since mipmap output type is always vec4, don't sprintf it
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
This commit is contained in:
@@ -3147,7 +3147,7 @@ setup_glsl_generate_mipmap(struct gl_context *ctx,
|
||||
"#version 130\n"
|
||||
"uniform %s texSampler;\n"
|
||||
"in vec3 texCoords;\n"
|
||||
"out %s out_color;\n"
|
||||
"out vec4 out_color;\n"
|
||||
"\n"
|
||||
"void main()\n"
|
||||
"{\n"
|
||||
@@ -3155,7 +3155,7 @@ setup_glsl_generate_mipmap(struct gl_context *ctx,
|
||||
"}\n";
|
||||
|
||||
fs_source = ralloc_asprintf(mem_ctx, fs_template,
|
||||
sampler->type, "vec4",
|
||||
sampler->type,
|
||||
sampler->texcoords);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user