Skip to content
  • Romain Vimont's avatar
    opengl: apply stereo transform using a matrix · b90d6aaf
    Romain Vimont authored and Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf committed
    
    
    The multiview mode (stereo) was applied by changing the texture
    paddings to crop only the left eye.
    
    The problem is that these texture paddings are specific to the input
    picture, while the stereo mode is specific to the renderer, which should
    be independent of the input picture.
    
    To separate these concerns, apply the stereo mode using a matrix to
    transform the texture coordinates from the renderer.
    
    Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
    b90d6aaf