]> git.sesse.net Git - movit/blobdiff - util.cpp
Allow setting width/height on FlatInput and YCbCrInput after instantiation.
[movit] / util.cpp
index 9c077e92909d639f203299b3162f805c8bd975e3..d50039993bafc08853fe1278803f053212521f71 100644 (file)
--- 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
 }