Correctly compare name against GL version

This commit is contained in:
Simon Fels 2016-09-29 07:56:32 +02:00
commit 99b913c273

View file

@ -88,7 +88,7 @@ static EGLint rcGetGLString(EGLenum name, void* buffer, EGLint bufferSize)
len += strlen(glProtocolStr) + 1;
}
if (name = GL_VERSION) {
if (name == GL_VERSION) {
// We're forcing version 2.0 no matter what the host provides as
// our emulation layer isn't prepared for anything newer (yet).
// This goes in parallel with filtering the extension set for