Skip to content

Commit

Permalink
stop frantically reallocating new pixmaps
Browse files Browse the repository at this point in the history
  • Loading branch information
i-rinat committed Jan 19, 2014
1 parent ca12849 commit 7e06740
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/api-video-mixer.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ _render_va_surf_to_texture(VdpVideoMixerData *videoMixerData, VdpVideoSurfaceDat
videoMixerData->glx_pixmap = glXCreatePixmap(dpy, fbconfig[0], videoMixerData->pixmap,
pixmap_attrs);
free(fbconfig);
videoMixerData->pixmap_width = srcSurfData->width;
videoMixerData->pixmap_height = srcSurfData->height;
}

glBindTexture(GL_TEXTURE_2D, videoMixerData->tex_id);
Expand Down

0 comments on commit 7e06740

Please sign in to comment.