From a2e2953de768804b47e7fa4c1800e30d65c6a6dd Mon Sep 17 00:00:00 2001 From: "r.kuznetsov" Date: Wed, 23 Dec 2015 15:26:08 +0300 Subject: [PATCH] Fixed road disappearing on some Android devices --- drape/gpu_program_manager.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drape/gpu_program_manager.cpp b/drape/gpu_program_manager.cpp index 1193b00881..14bdcf24b3 100644 --- a/drape/gpu_program_manager.cpp +++ b/drape/gpu_program_manager.cpp @@ -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 GpuProgramManager::GetProgram(int index)