Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
af0fa4b8
Commit
af0fa4b8
authored
Sep 16, 2022
by
Eric Pouech
Committed by
Alexandre Julliard
Sep 16, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
glu32: Fix GCC 12.2 warnings.
GCC complains about writing 4x4 floats into a pointer to a float. Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
parent
b9d07d6c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
project.c
dlls/glu32/project.c
+12
-12
No files found.
dlls/glu32/project.c
View file @
af0fa4b8
...
...
@@ -37,20 +37,20 @@
/*
** Make m an identity matrix
*/
static
void
__gluMakeIdentityd
(
GLdouble
m
[
16
])
static
void
__gluMakeIdentityd
(
GLdouble
m
[
4
][
4
])
{
m
[
0
+
4
*
0
]
=
1
;
m
[
0
+
4
*
1
]
=
0
;
m
[
0
+
4
*
2
]
=
0
;
m
[
0
+
4
*
3
]
=
0
;
m
[
1
+
4
*
0
]
=
0
;
m
[
1
+
4
*
1
]
=
1
;
m
[
1
+
4
*
2
]
=
0
;
m
[
1
+
4
*
3
]
=
0
;
m
[
2
+
4
*
0
]
=
0
;
m
[
2
+
4
*
1
]
=
0
;
m
[
2
+
4
*
2
]
=
1
;
m
[
2
+
4
*
3
]
=
0
;
m
[
3
+
4
*
0
]
=
0
;
m
[
3
+
4
*
1
]
=
0
;
m
[
3
+
4
*
2
]
=
0
;
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/***********************************************************************
...
...
@@ -77,7 +77,7 @@ void WINAPI gluPerspective( GLdouble fovy, GLdouble aspect, GLdouble zNear, GLdo
}
cotangent
=
cos
(
radians
)
/
sine
;
__gluMakeIdentityd
(
&
m
[
0
][
0
]
);
__gluMakeIdentityd
(
m
);
m
[
0
][
0
]
=
cotangent
/
aspect
;
m
[
1
][
1
]
=
cotangent
;
m
[
2
][
2
]
=
-
(
zFar
+
zNear
)
/
deltaZ
;
...
...
@@ -133,7 +133,7 @@ void WINAPI gluLookAt( GLdouble eyex, GLdouble eyey, GLdouble eyez,
/* Recompute up as: up = side x forward */
cross
(
side
,
forward
,
up
);
__gluMakeIdentityf
(
&
m
[
0
][
0
]
);
__gluMakeIdentityf
(
m
);
m
[
0
][
0
]
=
side
[
0
];
m
[
1
][
0
]
=
side
[
1
];
m
[
2
][
0
]
=
side
[
2
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment