diff options
-rw-r--r-- | progs/xdemos/texture_from_pixmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/progs/xdemos/texture_from_pixmap.c b/progs/xdemos/texture_from_pixmap.c index ab215b0ac30..5f2fbc3f129 100644 --- a/progs/xdemos/texture_from_pixmap.c +++ b/progs/xdemos/texture_from_pixmap.c @@ -86,7 +86,7 @@ ChoosePixmapFBConfig(Display *display) { int screen = DefaultScreen(display); GLXFBConfig *fbconfigs; - int i, nfbconfigs, value; + int i, nfbconfigs = 0, value; fbconfigs = glXGetFBConfigs(display, screen, &nfbconfigs); for (i = 0; i < nfbconfigs; i++) { |