Ticket #12098: ticket12098-dont-load-lib-when-opengles-disabled.diff

File ticket12098-dont-load-lib-when-opengles-disabled.diff, 693 bytes (added by Stuart Auchterlonie, 11 years ago)

Possible fix

  • mythtv/libs/libmythui/mythrender_opengl.cpp

    diff --git a/mythtv/libs/libmythui/mythrender_opengl.cpp b/mythtv/libs/libmythui/mythrender_opengl.cpp
    index 1b3049a..e69fafc 100644
    a b void* MythRenderOpenGL::GetProcAddress(const QString &proc) const 
    801801    void *result;
    802802    for (int i = 0; i < 4; i++)
    803803    {
     804#ifdef USING_OPENGLES
    804805        result = reinterpret_cast<void*>(
    805806            QLibrary::resolve("libGLESv2", (proc + exts[i]).toLatin1().data()));
    806807        if (result)
    807808            break;
     809#endif
    808810        result = reinterpret_cast<void*>(getProcAddress(proc + exts[i]));
    809811        if (result)
    810812            break;