Changed an error return value from 0 to NULL for consistency.

Philipp Wiesemann 2015-08-21 23:50:37 +02:00
parent 2d63af8eb1
commit 0856a7ef34
1 changed files with 1 additions and 1 deletions

View File

@ -457,7 +457,7 @@ SDL_CreateTexture(SDL_Renderer * renderer, Uint32 format, int access, int w, int
if (IsSupportedFormat(renderer, format)) {
if (renderer->CreateTexture(renderer, texture) < 0) {
SDL_DestroyTexture(texture);
return 0;
return NULL;
}
} else {
texture->native = SDL_CreateTexture(renderer,