equal
deleted
inserted
replaced
416 return NULL; |
416 return NULL; |
417 } |
417 } |
418 |
418 |
419 /* Swap textures to have texture before texture->native in the list */ |
419 /* Swap textures to have texture before texture->native in the list */ |
420 texture->native->next = texture->next; |
420 texture->native->next = texture->next; |
|
421 if (texture->native->next) { |
|
422 texture->native->next->prev = texture->native; |
|
423 } |
421 texture->prev = texture->native->prev; |
424 texture->prev = texture->native->prev; |
|
425 if (texture->prev) { |
|
426 texture->prev->next = texture; |
|
427 } |
422 texture->native->prev = texture; |
428 texture->native->prev = texture; |
423 texture->next = texture->native; |
429 texture->next = texture->native; |
424 renderer->textures = texture; |
430 renderer->textures = texture; |
425 |
431 |
426 if (SDL_ISPIXELFORMAT_FOURCC(texture->format)) { |
432 if (SDL_ISPIXELFORMAT_FOURCC(texture->format)) { |