Attempt to fix OpenColorIO issues on Mac

We cannot have version130 there (should use version 330 instead).
Patch suggested by Brecht Van Lommel
This commit is contained in:
Dalai Felinto 2017-08-30 15:06:53 +02:00
parent fbcf05f443
commit 510651ed72
Notes: blender-bot 2023-02-14 07:17:43 +01:00
Referenced by issue #52591, Eevee ERROR: 0:14: Invalid call of undeclared identifier 'texture3D' on MacPro
1 changed files with 2 additions and 2 deletions

View File

@ -354,7 +354,7 @@ bool OCIOImpl::setupGLSLDraw(OCIO_GLSLDrawState **state_r, OCIO_ConstProcessorRc
std::ostringstream osv;
if (supportGLSL13()) {
osv << "#version 130\n";
osv << "#version 330\n";
}
else {
osv << "#version 120\n";
@ -368,7 +368,7 @@ bool OCIOImpl::setupGLSLDraw(OCIO_GLSLDrawState **state_r, OCIO_ConstProcessorRc
std::ostringstream os;
if (supportGLSL13()) {
os << "#version 130\n";
os << "#version 330\n";
}
else {
os << "#define USE_TEXTURE_SIZE\n";