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
288da7c8
Commit
288da7c8
authored
Dec 06, 2022
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
opengl32: Fix GLdouble type alignment on the Unix side.
parent
6b816b89
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
7 deletions
+8
-7
project.c
dlls/glu32/project.c
+5
-5
make_opengl
dlls/opengl32/make_opengl
+1
-0
wgl.h
include/wine/wgl.h
+2
-2
No files found.
dlls/glu32/project.c
View file @
288da7c8
...
@@ -241,8 +241,8 @@ GLint WINAPI gluProject( GLdouble objx, GLdouble objy, GLdouble objz, const GLdo
...
@@ -241,8 +241,8 @@ GLint WINAPI gluProject( GLdouble objx, GLdouble objy, GLdouble objz, const GLdo
const
GLdouble
projMatrix
[
16
],
const
GLint
viewport
[
4
],
const
GLdouble
projMatrix
[
16
],
const
GLint
viewport
[
4
],
GLdouble
*
winx
,
GLdouble
*
winy
,
GLdouble
*
winz
)
GLdouble
*
winx
,
GLdouble
*
winy
,
GLdouble
*
winz
)
{
{
double
in
[
4
];
GL
double
in
[
4
];
double
out
[
4
];
GL
double
out
[
4
];
in
[
0
]
=
objx
;
in
[
0
]
=
objx
;
in
[
1
]
=
objy
;
in
[
1
]
=
objy
;
...
@@ -276,9 +276,9 @@ GLint WINAPI gluUnProject( GLdouble winx, GLdouble winy, GLdouble winz, const GL
...
@@ -276,9 +276,9 @@ GLint WINAPI gluUnProject( GLdouble winx, GLdouble winy, GLdouble winz, const GL
const
GLdouble
projMatrix
[
16
],
const
GLint
viewport
[
4
],
const
GLdouble
projMatrix
[
16
],
const
GLint
viewport
[
4
],
GLdouble
*
objx
,
GLdouble
*
objy
,
GLdouble
*
objz
)
GLdouble
*
objx
,
GLdouble
*
objy
,
GLdouble
*
objz
)
{
{
double
finalMatrix
[
16
];
GL
double
finalMatrix
[
16
];
double
in
[
4
];
GL
double
in
[
4
];
double
out
[
4
];
GL
double
out
[
4
];
__gluMultMatricesd
(
modelMatrix
,
projMatrix
,
finalMatrix
);
__gluMultMatricesd
(
modelMatrix
,
projMatrix
,
finalMatrix
);
if
(
!
__gluInvertMatrixd
(
finalMatrix
,
finalMatrix
))
return
(
GL_FALSE
);
if
(
!
__gluInvertMatrixd
(
finalMatrix
,
finalMatrix
))
return
(
GL_FALSE
);
...
...
dlls/opengl32/make_opengl
View file @
288da7c8
...
@@ -133,6 +133,7 @@ my %remap_types =
...
@@ -133,6 +133,7 @@ my %remap_types =
my
%
khronos_types
=
my
%
khronos_types
=
(
(
"double"
=>
"double DECLSPEC_ALIGN(8)"
,
"khronos_int8_t"
=>
"signed char"
,
"khronos_int8_t"
=>
"signed char"
,
"khronos_uint8_t"
=>
"unsigned char"
,
"khronos_uint8_t"
=>
"unsigned char"
,
"khronos_int16_t"
=>
"short"
,
"khronos_int16_t"
=>
"short"
,
...
...
include/wine/wgl.h
View file @
288da7c8
...
@@ -21,8 +21,8 @@ typedef int GLclampx;
...
@@ -21,8 +21,8 @@ typedef int GLclampx;
typedef
int
GLsizei
;
typedef
int
GLsizei
;
typedef
float
GLfloat
;
typedef
float
GLfloat
;
typedef
float
GLclampf
;
typedef
float
GLclampf
;
typedef
double
GLdouble
;
typedef
double
DECLSPEC_ALIGN
(
8
)
GLdouble
;
typedef
double
GLclampd
;
typedef
double
DECLSPEC_ALIGN
(
8
)
GLclampd
;
typedef
void
*
GLeglClientBufferEXT
;
typedef
void
*
GLeglClientBufferEXT
;
typedef
void
*
GLeglImageOES
;
typedef
void
*
GLeglImageOES
;
typedef
char
GLchar
;
typedef
char
GLchar
;
...
...
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