mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-28 10:20:09 +01:00
Add casts to prevent double->float conversion compiler warnings.
This commit is contained in:
parent
df8d337eec
commit
a01566e468
1 changed files with 2 additions and 2 deletions
|
|
@ -978,8 +978,8 @@ execute_program( GLcontext *ctx,
|
|||
{
|
||||
GLfloat a[4], result[4];
|
||||
fetch_vector1( ctx, &inst->SrcReg[0], machine, program, a );
|
||||
result[0] = cos(a[0]);
|
||||
result[1] = sin(a[0]);
|
||||
result[0] = (GLfloat)cos(a[0]);
|
||||
result[1] = (GLfloat)sin(a[0]);
|
||||
result[2] = 0.0; /* undefined! */
|
||||
result[3] = 0.0; /* undefined! */
|
||||
store_vector4( inst, machine, result );
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue