Merge "Dump GL errors and crash on failure to allocate texture for layer" into mnc-dev