mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-14 17:40:30 +01:00
glx: don't use the template keyword
for C++ editors Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
parent
9592c43a96
commit
e90a2ed88e
1 changed files with 3 additions and 3 deletions
|
|
@ -558,14 +558,14 @@ CallCreateNewScreen(Display *dpy, int scrn, struct dri_screen *psc,
|
|||
* non-conformant to prevent apps from picking them up accidentally.
|
||||
*/
|
||||
for (visual = psc->base.visuals; visual; visual = visual->next) {
|
||||
XVisualInfo template;
|
||||
XVisualInfo templ;
|
||||
XVisualInfo *visuals;
|
||||
int num_visuals;
|
||||
long mask;
|
||||
|
||||
template.visualid = visual->visualID;
|
||||
templ.visualid = visual->visualID;
|
||||
mask = VisualIDMask;
|
||||
visuals = XGetVisualInfo(dpy, mask, &template, &num_visuals);
|
||||
visuals = XGetVisualInfo(dpy, mask, &templ, &num_visuals);
|
||||
|
||||
if (visuals) {
|
||||
if (num_visuals > 0 && visuals->depth != DefaultDepth(dpy, scrn))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue