Don't use optimized GLSL on android for now

This commit is contained in:
Brad Davis 2018-10-22 11:22:59 -07:00
parent 4cf4a5582d
commit 85b92a372d

View file

@ -224,11 +224,16 @@ String Source::getSource(Dialect dialect, Variant variant) const {
} }
} }
#ifdef Q_OS_ANDROID
// SPIRV cross injects "#extension GL_OES_texture_buffer : require" into the GLSL shaders,
// which breaks android rendering
return variantSource.scribe;
#else
if (variantSource.glsl.empty()) { if (variantSource.glsl.empty()) {
return variantSource.scribe; return variantSource.scribe;
} }
return variantSource.glsl; return variantSource.glsl;
#endif
} }
const Reflection& Source::getReflection(Dialect dialect, Variant variant) const { const Reflection& Source::getReflection(Dialect dialect, Variant variant) const {