vrend: Fixup typo in SHADER_REQ_GPU_SHADER5 logic

In 0ea74890db, I had a typo that
made GL_ARB_gpu_shader5 being injected into vertex-shaders that
doesn't need them.

This is obviously a big problem when running on for instance GLES
2.0, where this extension isn't supported. So let's fix this.

Tested-by: Jakob Bornecrantz <jakob@collabora.com>
Reviewed-by: Jakob Bornecrantz <jakob@collabora.com>
Signed-off-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Signed-off-by: Jakob Bornecrantz <jakob@collabora.com>
macos/master
Erik Faye-Lund 6 years ago committed by Jakob Bornecrantz
parent 38f80b1bc0
commit e0e8ad557b
  1. 2
      src/vrend_shader.c

@ -558,7 +558,7 @@ iter_declaration(struct tgsi_iterate_context *iter,
ctx->inputs[i].glsl_gl_block = false;
if (iter->processor.Processor == TGSI_PROCESSOR_FRAGMENT &&
decl->Interp.Interpolate == TGSI_INTERPOLATE_LOC_SAMPLE) {
decl->Interp.Location == TGSI_INTERPOLATE_LOC_SAMPLE) {
ctx->shader_req_bits |= SHADER_REQ_GPU_SHADER5;
ctx->has_sample_input = true;
}

Loading…
Cancel
Save