mirror of https://github.com/mpv-player/mpv
cocoa-cb: fix usage of wrong fbo when off-screen
when we transitioned to the new libmpv API with commitae29725
i reintroduced an old bug that was fixed with7f714c6
because of a dumb rebasing error on my part. the branch i based the libmpv changed on was originally without the fbo fix and on rebasing i forgot to change the variable to the proper one, basically deactivating the fix.
This commit is contained in:
parent
4485e205b9
commit
ef2225c4a2
|
@ -109,10 +109,10 @@ class MPVHelper: NSObject {
|
||||||
// so only utilize a newly received FBO ID if it is nonzero.
|
// so only utilize a newly received FBO ID if it is nonzero.
|
||||||
fbo = i != 0 ? i : fbo
|
fbo = i != 0 ? i : fbo
|
||||||
|
|
||||||
var data = mpv_opengl_fbo(fbo: Int32(i),
|
var data = mpv_opengl_fbo(fbo: Int32(fbo),
|
||||||
w: Int32(surface.width),
|
w: Int32(surface.width),
|
||||||
h: Int32(surface.height),
|
h: Int32(surface.height),
|
||||||
internal_format: 0)
|
internal_format: 0)
|
||||||
var params: [mpv_render_param] = [
|
var params: [mpv_render_param] = [
|
||||||
mpv_render_param(type: MPV_RENDER_PARAM_OPENGL_FBO, data: &data),
|
mpv_render_param(type: MPV_RENDER_PARAM_OPENGL_FBO, data: &data),
|
||||||
mpv_render_param(type: MPV_RENDER_PARAM_FLIP_Y, data: &flip),
|
mpv_render_param(type: MPV_RENDER_PARAM_FLIP_Y, data: &flip),
|
||||||
|
|
Loading…
Reference in New Issue