mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-11 17:05:41 +00:00
SDL_UnlockTexture: change from 'int' to 'void'
This commit is contained in:
parent
cee245b6a9
commit
dc74a67a57
3 changed files with 5 additions and 9 deletions
|
|
@ -2013,12 +2013,12 @@ static void SDL_UnlockTextureNative(SDL_Texture *texture)
|
|||
SDL_UnlockTexture(native);
|
||||
}
|
||||
|
||||
int SDL_UnlockTexture(SDL_Texture *texture)
|
||||
void SDL_UnlockTexture(SDL_Texture *texture)
|
||||
{
|
||||
CHECK_TEXTURE_MAGIC(texture, -1);
|
||||
CHECK_TEXTURE_MAGIC(texture,);
|
||||
|
||||
if (texture->access != SDL_TEXTUREACCESS_STREAMING) {
|
||||
return 0;
|
||||
return;
|
||||
}
|
||||
#if SDL_HAVE_YUV
|
||||
if (texture->yuv) {
|
||||
|
|
@ -2034,7 +2034,6 @@ int SDL_UnlockTexture(SDL_Texture *texture)
|
|||
|
||||
SDL_DestroySurface(texture->locked_surface);
|
||||
texture->locked_surface = NULL;
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int SDL_SetRenderTargetInternal(SDL_Renderer *renderer, SDL_Texture *texture)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue