Ivan Epifanov 4 years ago
parent
commit
05e5a7cb05
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/render/vitagxm/SDL_render_vita_gxm.c

+ 1 - 1
src/render/vitagxm/SDL_render_vita_gxm.c

@@ -985,7 +985,7 @@ VITA_GXM_RenderReadPixels(SDL_Renderer *renderer, const SDL_Rect *rect,
     Uint32 pixel_format, void *pixels, int pitch)
 {
     // TODO: read from texture rendertarget. Although no-one sane should do it.
-    if (render->target) {
+    if (renderer->target) {
         return SDL_Unsupported();
     }