Explorar o código

PSP: Fixed returning success from unsupported SDL_RenderReadPixels().

This also fixed the missing error message.
Philipp Wiesemann %!s(int64=10) %!d(string=hai) anos
pai
achega
831597f714
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/render/psp/SDL_render_psp.c

+ 1 - 1
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();
 }