Don't force env variable override for EGL/GLES
This commit is contained in:
parent
1a9ee54a5c
commit
6c15fb9883
1 changed files with 3 additions and 3 deletions
|
|
@ -31,9 +31,9 @@ GLRendererServer::GLRendererServer(const std::shared_ptr<WindowCreator> &window_
|
|||
window_creator_(window_creator) {
|
||||
|
||||
// Force the host EGL/GLES libraries as translator implementation
|
||||
::setenv("ANDROID_EGL_LIB", "libEGL.so.1", 1);
|
||||
::setenv("ANDROID_GLESv1_LIB", "libGLESv2.so.2", 1);
|
||||
::setenv("ANDROID_GLESv2_LIB", "libGLESv2.so.2", 1);
|
||||
::setenv("ANDROID_EGL_LIB", "libEGL.so.1", 0);
|
||||
::setenv("ANDROID_GLESv1_LIB", "libGLESv2.so.2", 0);
|
||||
::setenv("ANDROID_GLESv2_LIB", "libGLESv2.so.2", 0);
|
||||
|
||||
if (!initLibrary())
|
||||
BOOST_THROW_EXCEPTION(std::runtime_error("Failed to initialize OpenGL renderer"));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue