From 1973c629926b95b532b7d2efc2c8e01f989b9ebc Mon Sep 17 00:00:00 2001 From: Thijs Vermeir Date: Tue, 6 May 2008 09:33:46 +0000 Subject: sys/osxvideo/cocoawindow.m: Fix compiler warnings on PPC64. Fixes bug #499318. Original commit message from CVS: Patch by: Thijs Vermeir * sys/osxvideo/cocoawindow.m: Fix compiler warnings on PPC64. Fixes bug #499318. --- sys/osxvideo/cocoawindow.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys') diff --git a/sys/osxvideo/cocoawindow.m b/sys/osxvideo/cocoawindow.m index c90dc604..9023e2d4 100644 --- a/sys/osxvideo/cocoawindow.m +++ b/sys/osxvideo/cocoawindow.m @@ -170,7 +170,7 @@ /* Free previous texture if any */ if (pi_texture) { - glDeleteTextures (1, &pi_texture); + glDeleteTextures (1, (GLuint *)&pi_texture); } if (data) { @@ -179,7 +179,7 @@ data = g_malloc0(width * height * sizeof(short)); } /* Create textures */ - glGenTextures (1, &pi_texture); + glGenTextures (1, (GLuint *)&pi_texture); glEnable (GL_TEXTURE_RECTANGLE_EXT); glEnable (GL_UNPACK_CLIENT_STORAGE_APPLE); @@ -262,7 +262,7 @@ } - (void) drawRect:(NSRect) rect { - int params[] = { 1 }; + GLint params[] = { 1 }; [actualContext makeCurrentContext]; -- cgit