Skip to content

opengl: Set GL_UNPACK_ROW_LENGTH in GLTexture::upload()

Vlad Zahorodnii requested to merge work/zzag/gl-texture-upload-stride into master

The image stride can be other than "width * bpp". In order to properly handle such a case, we need to set GL_UNPACK_ROW_LENGTH to skip the right amount of pixels between consecutive rows.

Co-authored-by: Gabriel Souza Franco gabrielfrancosouza@gmail.com

Merge request reports

Loading