I'm trying to figure out how to use an overlay plane. I'm running:
Redhat 7.3 and the Linux kernel 2.4.18-10
NVidia Quadro4 video card
I'm new to openGL so what I'm trying to do may be flawed.
Here is the sequence:
- reports major=1, minor=2
overlay_visual= glxChooseVisual() with GLX_LEVEL = 1
win= XCreateWindow() using the main visual's screen, depth, and visual
glXMakeCurrent(dpy,win,main_context) to access the main plane
- Drawing commands for main plane go here
glXMakeCurrent(dpy,win,overlay_context) to access the overlay plane
- At this point I get a "BadMatch" error which I think is because the overlay
context was created with overlay_visual and win was created with
main_visual. What am I doing wrong? Do I need to create two windows?
One thing that is interesting, "xprop -root" displays the
SERVER_OVERLAY_VISUALS, but glxinfo doesn't display
anything about overlays.