Skip to content

Commit 4c4f663

Browse files
bartstyczendoug-walker
authored andcommitted
replace texture2D function with texture for GLSL 1.3 (#1723)
Signed-off-by: Bart Styczen <bart.styczen@cine.dev> Signed-off-by: Bart Styczen <bart.styczen@cine.dev> Co-authored-by: Doug Walker <doug.walker@autodesk.com> (cherry picked from commit d5cedbf)
1 parent f86ef4e commit 4c4f663

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/OpenColorIO/GpuShaderUtils.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,11 +143,15 @@ std::string getTexSample(GpuLanguage lang,
143143
switch (lang)
144144
{
145145
case GPU_LANGUAGE_GLSL_1_2:
146-
case GPU_LANGUAGE_GLSL_1_3:
147146
{
148147
kw << "texture" << N << "D(" << samplerName << ", " << coords << ")";
149148
break;
150149
}
150+
case GPU_LANGUAGE_GLSL_1_3:
151+
{
152+
kw << "texture(" << samplerName << ", " << coords << ")";
153+
break;
154+
}
151155
case GPU_LANGUAGE_GLSL_ES_1_0:
152156
{
153157
if (N == 1) {

0 commit comments

Comments
 (0)