src/render/SDL_render.c
changeset 6237 240f1bced46b
parent 6232 37e8d0736366
child 6246 c70ec935a4bb
equal deleted inserted replaced
6236:4a7abc1b6b0e 6237:240f1bced46b
  1151 }
  1151 }
  1152 
  1152 
  1153 SDL_bool
  1153 SDL_bool
  1154 SDL_RenderTargetSupported(SDL_Renderer *renderer)
  1154 SDL_RenderTargetSupported(SDL_Renderer *renderer)
  1155 {
  1155 {
  1156     if ((!renderer) || (!renderer->SetTargetTexture)) {
  1156     if (!renderer || !renderer->SetTargetTexture) {
  1157         return SDL_FALSE;
  1157         return SDL_FALSE;
  1158     }
  1158     }
  1159     return SDL_TRUE;
  1159     return (renderer->info.flags & SDL_RENDERER_TARGETTEXTURE) != 0;
  1160 }
  1160 }
  1161 
  1161 
  1162 int
  1162 int
  1163 SDL_SetTargetTexture(SDL_Renderer *renderer, SDL_Texture *texture)
  1163 SDL_SetTargetTexture(SDL_Renderer *renderer, SDL_Texture *texture)
  1164 {
  1164 {