Fixed Windows build
parent
404ba5eea8
commit
92396f7d74
|
@ -1881,9 +1881,9 @@ GLES2_RenderCopyEx(SDL_Renderer *renderer, SDL_Texture *texture, const SDL_Rect
|
|||
data->glEnableVertexAttribArray(GLES2_ATTRIBUTE_ANGLE);
|
||||
|
||||
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_) */
|
||||
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 */
|
||||
translate[0] = translate[2] = translate[4] = translate[6] = (center->x + dstrect->x);
|
||||
translate[1] = translate[3] = translate[5] = translate[7] = (center->y + dstrect->y);
|
||||
|
|
Loading…
Reference in New Issue