Fix #121819: OpenColorIO GLSL error after recent change, only apply to Metal

This commit is contained in:
Brecht Van Lommel
2024-06-12 18:28:16 +02:00
parent f969208405
commit 397b96ed2e
+2
View File
@@ -205,7 +205,9 @@ static bool createGPUShader(OCIO_GPUShader &shader,
info.define("texture2D", "texture");
info.define("texture3D", "texture");
/* Work around unsupported in keyword in Metal GLSL emulation. */
#ifdef __APPLE__
info.define("in", "");
#endif
info.typedef_source("ocio_shader_shared.hh");
info.sampler(TEXTURE_SLOT_IMAGE, ImageType::FLOAT_2D, "image_texture");
info.sampler(TEXTURE_SLOT_OVERLAY, ImageType::FLOAT_2D, "overlay_texture");