Fixed memory leak in GlxContext when creating an OpenGL 3 context
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1579 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
parent
535b7bc839
commit
0354c306e3
@ -244,6 +244,9 @@ void GlxContext::CreateContext(GlxContext* shared, unsigned int bitsPerPixel, co
|
|||||||
};
|
};
|
||||||
myContext = glXCreateContextAttribsARB(myDisplay, configs[0], toShare, true, attributes);
|
myContext = glXCreateContextAttribsARB(myDisplay, configs[0], toShare, true, attributes);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (configs)
|
||||||
|
XFree(configs);
|
||||||
}
|
}
|
||||||
|
|
||||||
// If we couldn't create an OpenGL 3 context, adjust the settings
|
// If we couldn't create an OpenGL 3 context, adjust the settings
|
||||||
|
Loading…
Reference in New Issue
Block a user