]> git.cworth.org Git - fips/commit
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)
commit6014e77b9f7cf0570fe799fde240970a7cafb7ce
tree7c6d431319bf13aa359f18b99c69693e71418f28
parent64cf6f7515be41e3561f6062501571ceb84ddbb2
util-x11: Rework init_window interface to accept XVisualInfo

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.
test/glx-dlopen-dlsym.c
test/glx-dlopen-gpa.c
test/glx-dlopen-gpaa.c
test/glx-link-call.c
test/glx-link-gpa.c
test/glx-link-gpaa.c
test/handle-events.c
test/util-x11.c
test/util-x11.h