opengl32: Fix GLdouble type alignment on the Unix side.
This commit is contained in:
parent
6b816b8969
commit
288da7c8db
3 changed files with 8 additions and 7 deletions
|
@ -241,8 +241,8 @@ GLint WINAPI gluProject( GLdouble objx, GLdouble objy, GLdouble objz, const GLdo
|
|||
const GLdouble projMatrix[16], const GLint viewport[4],
|
||||
GLdouble *winx, GLdouble *winy, GLdouble *winz )
|
||||
{
|
||||
double in[4];
|
||||
double out[4];
|
||||
GLdouble in[4];
|
||||
GLdouble out[4];
|
||||
|
||||
in[0]=objx;
|
||||
in[1]=objy;
|
||||
|
@ -276,9 +276,9 @@ GLint WINAPI gluUnProject( GLdouble winx, GLdouble winy, GLdouble winz, const GL
|
|||
const GLdouble projMatrix[16], const GLint viewport[4],
|
||||
GLdouble *objx, GLdouble *objy, GLdouble *objz )
|
||||
{
|
||||
double finalMatrix[16];
|
||||
double in[4];
|
||||
double out[4];
|
||||
GLdouble finalMatrix[16];
|
||||
GLdouble in[4];
|
||||
GLdouble out[4];
|
||||
|
||||
__gluMultMatricesd(modelMatrix, projMatrix, finalMatrix);
|
||||
if (!__gluInvertMatrixd(finalMatrix, finalMatrix)) return(GL_FALSE);
|
||||
|
|
|
@ -133,6 +133,7 @@ my %remap_types =
|
|||
|
||||
my %khronos_types =
|
||||
(
|
||||
"double" => "double DECLSPEC_ALIGN(8)",
|
||||
"khronos_int8_t" => "signed char",
|
||||
"khronos_uint8_t" => "unsigned char",
|
||||
"khronos_int16_t" => "short",
|
||||
|
|
|
@ -21,8 +21,8 @@ typedef int GLclampx;
|
|||
typedef int GLsizei;
|
||||
typedef float GLfloat;
|
||||
typedef float GLclampf;
|
||||
typedef double GLdouble;
|
||||
typedef double GLclampd;
|
||||
typedef double DECLSPEC_ALIGN(8) GLdouble;
|
||||
typedef double DECLSPEC_ALIGN(8) GLclampd;
|
||||
typedef void *GLeglClientBufferEXT;
|
||||
typedef void *GLeglImageOES;
|
||||
typedef char GLchar;
|
||||
|
|
Loading…
Add table
Reference in a new issue