src/render/opengles2/SDL_render_gles2.c
changeset 12159 f7398cb0e3bf
parent 12156 e5a666405750
child 12164 8b71c22d6714
     1.1 --- a/src/render/opengles2/SDL_render_gles2.c	Tue Aug 28 13:37:11 2018 -0700
     1.2 +++ b/src/render/opengles2/SDL_render_gles2.c	Tue Aug 28 16:19:31 2018 -0700
     1.3 @@ -1881,9 +1881,9 @@
     1.4      data->glEnableVertexAttribArray(GLES2_ATTRIBUTE_ANGLE);
     1.5  
     1.6      radian_angle = PI * (360.0f - angle) / 180.f;
     1.7 -    fAngle[0] = fAngle[2] = fAngle[4] = fAngle[6] = (GLfloat)sin(radian_angle);
     1.8 +    fAngle[0] = fAngle[2] = fAngle[4] = fAngle[6] = (GLfloat)SDL_sin(radian_angle);
     1.9      /* render expects cos value - 1 (see GLES2_VertexSrc_Default_) */
    1.10 -    fAngle[1] = fAngle[3] = fAngle[5] = fAngle[7] = (GLfloat)cos(radian_angle) - 1.0f;
    1.11 +    fAngle[1] = fAngle[3] = fAngle[5] = fAngle[7] = (GLfloat)SDL_cos(radian_angle) - 1.0f;
    1.12      /* Calculate the center of rotation */
    1.13      translate[0] = translate[2] = translate[4] = translate[6] = (center->x + dstrect->x);
    1.14      translate[1] = translate[3] = translate[5] = translate[7] = (center->y + dstrect->y);