1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-16 10:08:36 +03:00

0030622: Visualization, TKOpenGl - Path Tracing fails on macOS

Fixed usage of non-existing function texture2D().
This commit is contained in:
kgv 2019-03-29 20:46:39 +03:00 committed by apn
parent 8693dfd0e8
commit 2a0522b1c6
2 changed files with 2 additions and 2 deletions

View File

@ -127,7 +127,7 @@ void main (void)
} }
else else
{ {
OutColor = mix (texture2D (uAccumTexture, vPixel), aColor, 1.f / (uAccumSamples + 1)); OutColor = mix (texture (uAccumTexture, vPixel), aColor, 1.f / (uAccumSamples + 1));
} }
#endif // ADAPTIVE_SAMPLING #endif // ADAPTIVE_SAMPLING

View File

@ -130,7 +130,7 @@ static const char Shaders_RaytraceRender_fs[] =
" }\n" " }\n"
" else\n" " else\n"
" {\n" " {\n"
" OutColor = mix (texture2D (uAccumTexture, vPixel), aColor, 1.f / (uAccumSamples + 1));\n" " OutColor = mix (texture (uAccumTexture, vPixel), aColor, 1.f / (uAccumSamples + 1));\n"
" }\n" " }\n"
"\n" "\n"
"#endif // ADAPTIVE_SAMPLING\n" "#endif // ADAPTIVE_SAMPLING\n"