I'm having trouble getting an overlay visual with the following code:
int n = 0, list[5];
list[n++] = GLX_LEVEL; // overlay planes
list[n++] = 0; // overlay planes
list[n++] = GLX_BUFFER_SIZE; // get at least 2 bits
list[n++] = 2;
list[n++] = None;
vis = glXChooseVisual(XtDisplay(_mgrWidget),
XScreenNumberOfScreen(XtScreen(_mgrWidget)), list);
the return is NULL.
I'm using RedHat 7.2 with all the latest updates including XFree86 4.1.0-15
I've used the 'Option "overlay"' line in XF86Config-4.
My root visual is TrueColor by starting the Xserver with '-cc 4'
I'm using the latest Matrox drivers. mga_hal is loaded but 'DRI' is not
enabled.
glxinfo -t gives:
[cts6 bhb]$ glxinfo -t
display: :0.0 screen:0
direct rendering: No
server glx vendor string: SGI
server glx version string: 1.2
server glx extensions:
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context
client glx vendor string: SGI
client glx version string: 1.2
client glx extensions:
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context
GLX extensions:
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context
OpenGL vendor string: VA Linux Systems, Inc.
OpenGL renderer string: Mesa GLX Indirect
OpenGL version string: 1.2 Mesa 3.4.2
OpenGL extensions:
GL_ARB_multitexture, GL_EXT_abgr, GL_EXT_blend_color,
GL_EXT_blend_minmax, GL_EXT_blend_subtract
glu version: 1.1 Mesa 3.4.2
glu extensions:
GL_EXT_abgr
Vis Vis Visual Trans buff lev render DB ste r g b a aux dep
ste accum buffers MS MS
ID Depth Type parent size el type reo sz sz sz sz buf th
ncl r g b a num bufs
----------------------------------------------------------------------------------------------------
0x25 8 PseudoColor 0 24 0 ci 1 0 0 0 0 0 0 16
0 0 0 0 0 0 0
0x26 8 GrayScale 0 24 0 ci 1 0 0 0 0 0 0 16
0 0 0 0 0 0 0
0x27 24 TrueColor 0 24 0 rgba 1 0 8 8 8 0 0 16
0 0 0 0 0 0 0
0x28 24 TrueColor 0 24 0 rgba 1 0 8 8 8 0 0 16
8 16 16 16 0 0 0
So there is a PseudoColor visual available. But it's level is 0. I
need a GLX_LEVEL 1 visual.
Any suggestions will be much appreciated.
Thanks
Barry
--
Barry Branham, Computer Operations Engineer
Cardiothoracic Surgery Research
Washington University School of Medicine
[EMAIL PROTECTED] (314)362-8305
_______________________________________________
Xpert mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xpert