From 1973c629926b95b532b7d2efc2c8e01f989b9ebc Mon Sep 17 00:00:00 2001 From: Thijs Vermeir Date: Tue, 6 May 2008 09:33:46 +0000 Subject: [PATCH] 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. --- ChangeLog | 7 +++++++ common | 2 +- sys/osxvideo/cocoawindow.m | 6 +++--- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 3b5e292c70..b5d77f6d2a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2008-05-06 Sebastian Dröge + + Patch by: Thijs Vermeir + + * sys/osxvideo/cocoawindow.m: + Fix compiler warnings on PPC64. Fixes bug #499318. + 2008-05-05 Wim Taymans Patch by: Sjoerd Simons diff --git a/common b/common index f6fc3fa764..9b28214399 160000 --- a/common +++ b/common @@ -1 +1 @@ -Subproject commit f6fc3fa7643c03eb912f4e259d48c99b0e8d0aca +Subproject commit 9b28214399156457fd6b43d0604a47e4bdf19c28 diff --git a/sys/osxvideo/cocoawindow.m b/sys/osxvideo/cocoawindow.m index c90dc604a9..9023e2d4b3 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];