X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=util.cpp;h=d50039993bafc08853fe1278803f053212521f71;hb=c06f1c4cc39bbebe13fe8e42a9278a55b5d0a216;hp=9c077e92909d639f203299b3162f805c8bd975e3;hpb=d4cade9004a527206e1360ae24f833a6bcf6d476;p=movit diff --git a/util.cpp b/util.cpp index 9c077e9..d500399 100644 --- a/util.cpp +++ b/util.cpp @@ -334,11 +334,11 @@ void *get_gl_context_identifier() #elif defined(WIN32) return (void *)wglGetCurrentContext(); #else - void *ret = (void *)glXGetCurrentContext(); + void *ret = (void *)eglGetCurrentContext(); if (ret != NULL) { return ret; } - return (void *)eglGetCurrentContext(); + return (void *)glXGetCurrentContext(); #endif }