src/render/SDL_render.c
changeset 7761 bddbfca922cd
parent 7760 63b519624589
child 7770 28031e0042b2
     1.1 --- a/src/render/SDL_render.c	Sat Sep 28 14:06:51 2013 -0700
     1.2 +++ b/src/render/SDL_render.c	Sat Sep 28 14:06:55 2013 -0700
     1.3 @@ -901,8 +901,12 @@
     1.4          SDL_assert(!texture->native);
     1.5          renderer = texture->renderer;
     1.6          SDL_assert(renderer->UpdateTextureYUV);
     1.7 -        return renderer->UpdateTextureYUV(renderer, texture, rect, Yplane, Ypitch, Uplane, Upitch, Vplane, Vpitch);
     1.8 -    }
     1.9 +		if (renderer->UpdateTextureYUV) {
    1.10 +			return renderer->UpdateTextureYUV(renderer, texture, rect, Yplane, Ypitch, Uplane, Upitch, Vplane, Vpitch);
    1.11 +		} else {
    1.12 +			return SDL_Unsupported();
    1.13 +		}
    1.14 +	}
    1.15  }
    1.16  
    1.17  static int