Fix an oversight in GLExtensions

I only wanted to erase the first character in the string, not the entire thing.
Fixes Qualcomm and PowerVR devices crashing out immediately.
This commit is contained in:
Ryan Houdek 2015-07-20 22:01:23 -05:00
parent 3d6ee7313d
commit dc46ae0380
1 changed files with 1 additions and 1 deletions

View File

@ -1984,7 +1984,7 @@ namespace GLExtensions
while (buffer >> tmp)
{
if (tmp[0] == '!')
result &= !m_extension_list[tmp.erase(0)];
result &= !m_extension_list[tmp.erase(0, 1)];
else
result &= m_extension_list[tmp];
}