summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2017-01-19 18:00:01 +0000
committerEmmanuele Bassi <ebassi@gnome.org>2017-01-25 12:28:29 +0000
commit4fe238e023d152e55c7aac210be2e930b06b412c (patch)
treeddaeeb38b3be59119f485a643903493ed4190a89
parent3a383713670a8a31c6a9c84e3729d88d27c718ab (diff)
downloadlibepoxy-4fe238e023d152e55c7aac210be2e930b06b412c.tar.gz
tests/wgl: Use the right array offsets
And avoid an out of bounds access warning.
-rw-r--r--test/wgl_usefontbitmaps.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/wgl_usefontbitmaps.c b/test/wgl_usefontbitmaps.c
index 3287b65..8a528da 100644
--- a/test/wgl_usefontbitmaps.c
+++ b/test/wgl_usefontbitmaps.c
@@ -46,17 +46,17 @@ test_function(HDC hdc)
}
/* First, use the #ifdeffed variant of the function */
- wglUseFontBitmaps(hdc, 0, 255, dlist[1]);
+ wglUseFontBitmaps(hdc, 0, 255, dlist[0]);
glListBase(dlist[1]);
glCallLists(strlen(string), GL_UNSIGNED_BYTE, string);
/* Now, use the specific version, manually. */
#ifdef UNICODE
- wglUseFontBitmapsW(hdc, 0, 255, dlist[2]);
+ wglUseFontBitmapsW(hdc, 0, 255, dlist[0]);
#else
- wglUseFontBitmapsA(hdc, 0, 255, dlist[2]);
+ wglUseFontBitmapsA(hdc, 0, 255, dlist[0]);
#endif
- glListBase(dlist[2]);
+ glListBase(dlist[1]);
glCallLists(strlen(string), GL_UNSIGNED_BYTE, string);
wglMakeCurrent(NULL, NULL);