Commit 6ecd0b2c3576fe105b8aca89e2df4adf25b0bfec

Ryan C. Gordon 2018-10-04T21:10:42

opengles2: removed useless memcpy.

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/src/render/opengles2/SDL_render_gles2.c b/src/render/opengles2/SDL_render_gles2.c
index 929e376..77ba194 100644
--- a/src/render/opengles2/SDL_render_gles2.c
+++ b/src/render/opengles2/SDL_render_gles2.c
@@ -978,7 +978,6 @@ SetDrawState(GLES2_RenderData *data, const SDL_RenderCommand *cmd, const GLES2_I
         data->glScissor(viewport->x + rect->x,
                         data->drawstate.target ? viewport->y + rect->y : data->drawstate.drawableh - viewport->y - rect->y - rect->h,
                         rect->w, rect->h);
-        SDL_memcpy(&data->drawstate.cliprect, rect, sizeof (SDL_Rect));
         data->drawstate.cliprect_dirty = SDL_FALSE;
     }