Permalink
Browse files

Use QLibrary to find libGLESv2 for ARM

Please let us know if this causes regressions in other GLES setups.

Fixes #10292

Signed-off-by: Gavin Hurlbut <ghurlbut@mythtv.org>
  • Loading branch information...
1 parent 98f7305 commit 8211f9ddf1c1bbb6c1fe6a888044072e8f87aa54 @jflatt jflatt committed with Beirdo Jul 17, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 mythtv/libs/libmythui/mythrender_opengl.cpp
View
4 mythtv/libs/libmythui/mythrender_opengl.cpp
@@ -1,3 +1,4 @@
+#include <QLibrary>
#include <algorithm>
using namespace std;
@@ -796,6 +797,9 @@ void* MythRenderOpenGL::GetProcAddress(const QString &proc) const
void *result;
for (int i = 0; i < 4; i++)
{
+ result = QLibrary::resolve("libGLESv2", (proc + exts[i]).toLatin1().data());
+ if (result)
+ break;
result = getProcAddress(proc + exts[i]);
if (result)
break;

0 comments on commit 8211f9d

Please sign in to comment.