Fixed Windows build

This commit is contained in:
Sam Lantinga 2018-08-28 16:19:31 -07:00
parent 404ba5eea8
commit 92396f7d74
1 changed files with 2 additions and 2 deletions

View File

@ -1881,9 +1881,9 @@ GLES2_RenderCopyEx(SDL_Renderer *renderer, SDL_Texture *texture, const SDL_Rect
data->glEnableVertexAttribArray(GLES2_ATTRIBUTE_ANGLE); data->glEnableVertexAttribArray(GLES2_ATTRIBUTE_ANGLE);
radian_angle = PI * (360.0f - angle) / 180.f; radian_angle = PI * (360.0f - angle) / 180.f;
fAngle[0] = fAngle[2] = fAngle[4] = fAngle[6] = (GLfloat)sin(radian_angle); fAngle[0] = fAngle[2] = fAngle[4] = fAngle[6] = (GLfloat)SDL_sin(radian_angle);
/* render expects cos value - 1 (see GLES2_VertexSrc_Default_) */ /* render expects cos value - 1 (see GLES2_VertexSrc_Default_) */
fAngle[1] = fAngle[3] = fAngle[5] = fAngle[7] = (GLfloat)cos(radian_angle) - 1.0f; fAngle[1] = fAngle[3] = fAngle[5] = fAngle[7] = (GLfloat)SDL_cos(radian_angle) - 1.0f;
/* Calculate the center of rotation */ /* Calculate the center of rotation */
translate[0] = translate[2] = translate[4] = translate[6] = (center->x + dstrect->x); translate[0] = translate[2] = translate[4] = translate[6] = (center->x + dstrect->x);
translate[1] = translate[3] = translate[5] = translate[7] = (center->y + dstrect->y); translate[1] = translate[3] = translate[5] = translate[7] = (center->y + dstrect->y);