Commit 831597f71482cdaaa4793d7ef3d77d92f144ad33

Philipp Wiesemann 2016-04-01T21:13:58

PSP: Fixed returning success from unsupported SDL_RenderReadPixels(). This also fixed the missing error message.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/render/psp/SDL_render_psp.c b/src/render/psp/SDL_render_psp.c
index a6f8366..f285131 100644
--- a/src/render/psp/SDL_render_psp.c
+++ b/src/render/psp/SDL_render_psp.c
@@ -861,7 +861,7 @@ PSP_RenderReadPixels(SDL_Renderer * renderer, const SDL_Rect * rect,
                     Uint32 pixel_format, void * pixels, int pitch)
 
 {
-        return 0;
+    return SDL_Unsupported();
 }