Commit 7f2cc34c authored by Thomas Guillem's avatar Thomas Guillem

opengl: fix temporary buf visible_pitch alignment

This commit fixes a regression from 22776daa29914cf56c346241f89682d5707ffef7
parent 50fd109b
......@@ -447,6 +447,9 @@ upload_plane(const opengl_tex_converter_t *tc, unsigned tex_idx,
{
if (pitch != visible_pitch)
{
#define ALIGN(x, y) (((x) + ((y) - 1)) & ~((y) - 1))
visible_pitch = ALIGN(visible_pitch, 4);
#undef ALIGN
size_t buf_size = visible_pitch * height;
const uint8_t *source = pixels;
uint8_t *destination;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment