[PATCH] Warning fix (GL likes to call strings GLubyte * instead of char *).

Eric Anholt eric at anholt.net
Wed Dec 3 13:29:12 PST 2008


---
 glx/indirect_program.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/glx/indirect_program.c b/glx/indirect_program.c
index d23a0a9..cbea40e 100644
--- a/glx/indirect_program.c
+++ b/glx/indirect_program.c
@@ -103,7 +103,7 @@ int DoGetProgramString(struct __GLXclientStateRec *cl, GLbyte *pc,
 	    CALL_by_offset(GET_DISPATCH(), 
 			   (void (GLAPIENTRYP)(GLuint, GLenum, GLubyte *)),
 			   get_program_string_offset,
-			   (target, pname, answer));
+			   (target, pname, (GLubyte *)answer));
 	}
 
 	if (__glXErrorOccured()) {
-- 
1.5.6.5




More information about the xorg mailing list