summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends
diff options
context:
space:
mode:
authorRyan Houdek <Sonicadvance1@gmail.com>2015-07-20 22:01:23 -0500
committerRyan Houdek <Sonicadvance1@gmail.com>2015-07-20 22:01:23 -0500
commitdc46ae0380731c9320cc455601ebcbf4e638493e (patch)
treee7caebe73350da2112cfd771179b6da9fb4cc96a /Source/Core/VideoBackends
parent3d6ee7313d10d9be47f9ed3d3f0dbaa737aed954 (diff)
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.
Diffstat (limited to 'Source/Core/VideoBackends')
-rw-r--r--Source/Core/VideoBackends/OGL/GLExtensions/GLExtensions.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/VideoBackends/OGL/GLExtensions/GLExtensions.cpp b/Source/Core/VideoBackends/OGL/GLExtensions/GLExtensions.cpp
index de200343e4..75988b09c6 100644
--- a/Source/Core/VideoBackends/OGL/GLExtensions/GLExtensions.cpp
+++ b/Source/Core/VideoBackends/OGL/GLExtensions/GLExtensions.cpp
@@ -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];
}