This commit is contained in:
itsmattkc
2018-09-06 16:47:22 +10:00
parent 84287a7448
commit 2326fb43f3
5 changed files with 13 additions and 6 deletions
+2
View File
@@ -190,7 +190,9 @@ bool get_clip_frame(Clip* c, long playhead) {
c->texture->allocateStorage(QOpenGLTexture::RGBA, QOpenGLTexture::UInt8);
}
glPixelStorei(GL_UNPACK_ROW_LENGTH, current_frame->linesize[0]/4);
c->texture->setData(0, QOpenGLTexture::RGBA, QOpenGLTexture::UInt8, current_frame->data[0]);
glPixelStorei(GL_UNPACK_ROW_LENGTH, 0);
c->texture_frame = clip_time;
return true;