Fixed road disappearing on some Android devices

This commit is contained in:
r.kuznetsov 2015-12-23 15:26:08 +03:00
parent a4c87d0808
commit a2e2953de7

View file

@ -42,11 +42,15 @@ GpuProgramManager::~GpuProgramManager()
void GpuProgramManager::Init()
{
// This feature is not supported on some Android devices (especially on Android 4.x version).
// Since we can't predict on which devices it'll work fine, we have to turn off for all devices.
#if !defined(OMIM_OS_ANDROID)
if (GLFunctions::glGetInteger(gl_const::GLMaxVertexTextures) > 0)
{
LOG(LINFO, ("VTF enabled"));
globalDefines = "#define ENABLE_VTF\n"; // VTF == Vetrex Texture Fetch
}
#endif
}
ref_ptr<GpuProgram> GpuProgramManager::GetProgram(int index)