]> git.sesse.net Git - nageru/blobdiff - h264encode.cpp
Rename compressor to level_compressor.
[nageru] / h264encode.cpp
index 51ad5178704922c56dd474db247405077e45aae3..ad688fc58ee87b59e5232b94ad75bc4c24b36ad1 100644 (file)
@@ -1868,7 +1868,7 @@ H264Encoder::H264Encoder(QSurface *surface, int width, int height, HTTPD *httpd)
 
        copy_thread = std::thread([this]{
                //SDL_GL_MakeCurrent(window, context);
-               QOpenGLContext *context = create_context();
+               QOpenGLContext *context = create_context(this->surface);
                eglBindAPI(EGL_OPENGL_API);
                if (!make_current(context, this->surface)) {
                        printf("display=%p surface=%p context=%p curr=%p err=%d\n", eglGetCurrentDisplay(), this->surface, context, eglGetCurrentContext(),