SDL_UnlockTexture: change from 'int' to 'void'

This commit is contained in:
Sylvain
2023-02-09 20:16:41 +01:00
committed by Sylvain Becker
parent cee245b6a9
commit dc74a67a57
3 changed files with 5 additions and 9 deletions

View File

@@ -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)