diff options
Diffstat (limited to 'src/libutil/mipmap.c')
-rw-r--r-- | src/libutil/mipmap.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libutil/mipmap.c b/src/libutil/mipmap.c index 8e63eaa..71e76af 100644 --- a/src/libutil/mipmap.c +++ b/src/libutil/mipmap.c @@ -5552,7 +5552,7 @@ static void shove233rev(const GLfloat shoveComponents[], static void extract565(int isSwap, const void *packedPixel, GLfloat extractComponents[]) { - GLushort ushort= *(const GLushort *)packedPixel; + GLushort ushort; if (isSwap) { ushort= __GLU_SWAP_2_BYTES(packedPixel); @@ -5593,7 +5593,7 @@ static void shove565(const GLfloat shoveComponents[], static void extract565rev(int isSwap, const void *packedPixel, GLfloat extractComponents[]) { - GLushort ushort= *(const GLushort *)packedPixel; + GLushort ushort; if (isSwap) { ushort= __GLU_SWAP_2_BYTES(packedPixel); @@ -6631,7 +6631,7 @@ static TexImage3Dproc pTexImage3D = 0; # include <dlfcn.h> # include <sys/types.h> #else - WINGDIAPI PROC WINAPI wglGetProcAddress(LPCSTR); +# include <windows.h> #endif static void gluTexImage3D( GLenum target, GLint level, |