This is new wiki software and old wiki content. It's a work in progress!
Here's the explanation.
Be gentle, report bugs, leave feedback on pages, or just edit them yourself! Thanks!

SDL Wiki

SDL_UnlockTexture

Unlock a texture, uploading the changes to video memory, if needed.

Syntax

void SDL_UnlockTexture(SDL_Texture * texture);

Function Parameters

texture

a texture locked by SDL_LockTexture()

Remarks

Warning: Please note that SDL_LockTexture() is intended to be write-only; it will notguarantee the previous contents of the texture will be provided. You must fully initialize any area of a texture that you lock before unlocking it, as the pixels might otherwise be uninitialized memory.

Which is to say: locking and immediately unlocking a texture can result in corrupted textures, depending on the renderer in use.

SDL_LockTexture

CategoryAPI, CategoryRender


[ edit | delete | history | feedback | raw ]

[ front page | index | search | recent changes | git repo | offline html ]

All wiki content is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
Wiki powered by ghwikipp.