void SDL_UnlockTexture(SDL_Texture * texture) { SDL_Renderer *renderer; CHECK_TEXTURE_MAGIC(texture, ); if (texture->access != SDL_TEXTUREACCESS_STREAMING) { return; } if (texture->yuv) { SDL_UnlockTextureYUV(texture); } else if (texture->native) { SDL_UnlockTextureNative(texture); } else { renderer = texture->renderer; renderer->UnlockTexture(renderer, texture); } }