From 513d88cc87cfaa0efb5fe23db4ecee020e0b8efd Mon Sep 17 00:00:00 2001 From: David Reveman Date: Sun, 11 Mar 2007 10:18:55 +0100 Subject: [PATCH] Fix typo on xglCallLists. Caused glCallLists to not work at all. Hence, also breaking usage of glXUseXFont. --- hw/xgl/glxext/xglglxext.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/hw/xgl/glxext/xglglxext.c b/hw/xgl/glxext/xglglxext.c index 7d65d8161..c2fcdd906 100644 --- a/hw/xgl/glxext/xglglxext.c +++ b/hw/xgl/glxext/xglglxext.c @@ -2020,41 +2020,41 @@ xglCallLists (GLsizei n, { switch (type) { case GL_BYTE: - list = (GLuint) *(((GLbyte *) lists) + n); + list = (GLuint) *(((GLbyte *) lists) + i); break; case GL_UNSIGNED_BYTE: - list = (GLuint) *(((GLubyte *) lists) + n); + list = (GLuint) *(((GLubyte *) lists) + i); break; case GL_SHORT: - list = (GLuint) *(((GLshort *) lists) + n); + list = (GLuint) *(((GLshort *) lists) + i); break; case GL_UNSIGNED_SHORT: - list = (GLuint) *(((GLushort *) lists) + n); + list = (GLuint) *(((GLushort *) lists) + i); break; case GL_INT: - list = (GLuint) *(((GLint *) lists) + n); + list = (GLuint) *(((GLint *) lists) + i); break; case GL_UNSIGNED_INT: - list = (GLuint) *(((GLuint *) lists) + n); + list = (GLuint) *(((GLuint *) lists) + i); break; case GL_FLOAT: - list = (GLuint) *(((GLfloat *) lists) + n); + list = (GLuint) *(((GLfloat *) lists) + i); break; case GL_2_BYTES: { - GLubyte *ubptr = ((GLubyte *) lists) + 2 * n; + GLubyte *ubptr = ((GLubyte *) lists) + 2 * i; list = (GLuint) *ubptr * 256 + (GLuint) *(ubptr + 1); } break; case GL_3_BYTES: { - GLubyte *ubptr = ((GLubyte *) lists) + 3 * n; + GLubyte *ubptr = ((GLubyte *) lists) + 3 * i; list = (GLuint) * ubptr * 65536 + (GLuint) * (ubptr + 1) * 256 + (GLuint) * (ubptr + 2); } break; case GL_4_BYTES: { - GLubyte *ubptr = ((GLubyte *) lists) + 4 * n; + GLubyte *ubptr = ((GLubyte *) lists) + 4 * i; list = (GLuint) * ubptr * 16777216 + (GLuint) * (ubptr + 1) * 65536 + (GLuint) * (ubptr + 2) * 256