Skip to content

Commit

Permalink
replace texture2D function with texture for GLSL 1.3
Browse files Browse the repository at this point in the history
Signed-off-by: Bart Styczen <bart.styczen@cine.dev>
  • Loading branch information
bartstyczen committed Nov 10, 2022
1 parent cac1ba5 commit ae9b582
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/OpenColorIO/GpuShaderUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,11 +143,15 @@ std::string getTexSample(GpuLanguage lang,
switch (lang)
{
case GPU_LANGUAGE_GLSL_1_2:
case GPU_LANGUAGE_GLSL_1_3:
{
kw << "texture" << N << "D(" << samplerName << ", " << coords << ")";
break;
}
case GPU_LANGUAGE_GLSL_1_3:
{
kw << "texture(" << samplerName << ", " << coords << ")";
break;
}
case GPU_LANGUAGE_GLSL_ES_1_0:
{
if (N == 1) {
Expand Down

0 comments on commit ae9b582

Please sign in to comment.