opengl/glshadermanager: use texture2D for sampling external textures

BUG: 478737
This commit is contained in:
Xaver Hugl 2023-12-19 20:11:40 +01:00
parent e77f23ac5d
commit d301106aef

View file

@ -181,7 +181,7 @@ QByteArray ShaderManager::generateFragmentSource(ShaderTraits traits) const
stream << " }\n";
} else if (traits & ShaderTrait::MapExternalTexture) {
// external textures require texture2D for sampling
stream << " result = " << textureLookup << "(sampler, texcoord0);\n";
stream << " result = texture2D(sampler, texcoord0);\n";
} else if (traits & ShaderTrait::UniformColor) {
stream << " result = geometryColor;\n";
}