]> git.cworth.org Git - fips/commitdiff
util-x11: Rework init_window interface to accept XVisualInfo
authorCarl Worth <cworth@cworth.org>
Mon, 1 Jul 2013 18:22:17 +0000 (11:22 -0700)
committerCarl Worth <cworth@cworth.org>
Tue, 2 Jul 2013 21:19:33 +0000 (14:19 -0700)
This is a much more correct way of doing things. Previously, we would select
a visual when creating the OpenGL context, but then use a default visual when
creating a window. This was fragile and would fail if the default visual was
not identical to what we had created.

Now, instead, we pass the selected XVisualInfo to our init_window interface
and call XCreateWindow instead of XCreateSimpleWindow. This guarantees that
the visuals match as required.


No differences found