this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fixed padding calculation in copy_upload_texture(). Thanks, Vitaly!

+4 -2
+4 -2
src/renderer_GL_common.inl
··· 324 324 325 325 if(h > 0 && w > 0) 326 326 { 327 - // Account for padding 328 - w += w % alignment; 327 + unsigned int rem = w % alignment; 328 + // If not already aligned, account for padding on each row 329 + if(rem > 0) 330 + w += alignment - rem; 329 331 330 332 unsigned char *copy = (unsigned char*)SDL_malloc(update_rect.h*w); 331 333 unsigned char *dst = copy;