mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2025-01-12 05:41:10 +01:00
Changed an error return value from 0 to NULL for consistency.
This commit is contained in:
parent
2d63af8eb1
commit
0856a7ef34
@ -457,7 +457,7 @@ SDL_CreateTexture(SDL_Renderer * renderer, Uint32 format, int access, int w, int
|
|||||||
if (IsSupportedFormat(renderer, format)) {
|
if (IsSupportedFormat(renderer, format)) {
|
||||||
if (renderer->CreateTexture(renderer, texture) < 0) {
|
if (renderer->CreateTexture(renderer, texture) < 0) {
|
||||||
SDL_DestroyTexture(texture);
|
SDL_DestroyTexture(texture);
|
||||||
return 0;
|
return NULL;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
texture->native = SDL_CreateTexture(renderer,
|
texture->native = SDL_CreateTexture(renderer,
|
||||||
|
Loading…
Reference in New Issue
Block a user