Removing some of the QueueCopy functions because they are legacy
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
diff --git a/src/render/ps2/SDL_render_ps2.c b/src/render/ps2/SDL_render_ps2.c
index d305e47..af81021 100644
--- a/src/render/ps2/SDL_render_ps2.c
+++ b/src/render/ps2/SDL_render_ps2.c
@@ -201,29 +201,6 @@ PS2_QueueFillRects(SDL_Renderer * renderer, SDL_RenderCommand *cmd, const SDL_FR
}
static int
-PS2_QueueCopy(SDL_Renderer * renderer, SDL_RenderCommand *cmd, SDL_Texture * texture,
- const SDL_Rect * srcrect, const SDL_FRect * dstrect)
-{
- return 0;
-}
-
-static int
-PS2_QueueCopyEx(SDL_Renderer * renderer, SDL_RenderCommand *cmd, SDL_Texture * texture,
- const SDL_Rect * srcrect, const SDL_FRect * dstrect,
- const double angle, const SDL_FPoint *center, const SDL_RendererFlip flip, float scale_x, float scale_y)
-{
- return 0;
-}
-
-static int
-PS2_RenderCopyEx(SDL_Renderer * renderer, SDL_Surface *surface, SDL_Texture * texture,
- const SDL_Rect * srcrect, const SDL_Rect * final_rect,
- const double angle, const SDL_FPoint * center, const SDL_RendererFlip flip, float scale_x, float scale_y)
-{
- return 0;
-}
-
-static int
PS2_QueueGeometry(SDL_Renderer *renderer, SDL_RenderCommand *cmd, SDL_Texture *texture,
const float *xy, int xy_stride, const SDL_Color *color, int color_stride, const float *uv, int uv_stride,
int num_vertices, const void *indices, int num_indices, int size_indices,
@@ -276,6 +253,15 @@ PS2_RunCommandQueue(SDL_Renderer * renderer, SDL_RenderCommand *cmd, void *verti
PS2_RenderClear(renderer, cmd);
break;
}
+ case SDL_RENDERCMD_FILL_RECTS: /* unused */
+ break;
+
+ case SDL_RENDERCMD_COPY: /* unused */
+ break;
+
+ case SDL_RENDERCMD_COPY_EX: /* unused */
+ break;
+
default:
break;
}
@@ -427,8 +413,6 @@ PS2_CreateRenderer(SDL_Window * window, Uint32 flags)
renderer->QueueDrawPoints = PS2_QueueDrawPoints;
renderer->QueueDrawLines = PS2_QueueDrawPoints; /* lines and points queue vertices the same way. */
renderer->QueueFillRects = PS2_QueueFillRects;
- renderer->QueueCopy = PS2_QueueCopy;
- renderer->QueueCopyEx = PS2_QueueCopyEx;
renderer->QueueGeometry = PS2_QueueGeometry;
renderer->RunCommandQueue = PS2_RunCommandQueue;
renderer->RenderReadPixels = PS2_RenderReadPixels;