summaryrefslogtreecommitdiffstats
path: root/sys/osxvideo
diff options
context:
space:
mode:
authorThijs Vermeir <thijsvermeir@gmail.com>2008-05-06 09:33:46 +0000
committerSebastian Dröge <slomo@circular-chaos.org>2008-05-06 09:33:46 +0000
commit1973c629926b95b532b7d2efc2c8e01f989b9ebc (patch)
tree2b74ea3ecb8411f46e7eb1a682a4573efe0b5c43 /sys/osxvideo
parent89b114fe44016c9bf96662fdebfc048f8540ee1d (diff)
sys/osxvideo/cocoawindow.m: Fix compiler warnings on PPC64. Fixes bug #499318.
Original commit message from CVS: Patch by: Thijs Vermeir <thijsvermeir at gmail dot com> * sys/osxvideo/cocoawindow.m: Fix compiler warnings on PPC64. Fixes bug #499318.
Diffstat (limited to 'sys/osxvideo')
-rw-r--r--sys/osxvideo/cocoawindow.m6
1 files changed, 3 insertions, 3 deletions
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];