← Back to team overview

cairo-dock-team team mailing list archive

Re: [Bug 712052] Re: Wrong element set to None of array doubleBufferAttributes?

 

I've tried both, cairo_dock_get_Xdisplay and XOpenDisplay and both
method doesn't change anything. Cairo-Dock still refuses using OpenGL
since it cannot find suitable fbconfigs. However, my test program finds
fbconfigs the second attempt. Very strange! There seems to be something
special to the cairo-dock code.

> interesting !
> I don't know what exactly is behind gdk_x11_get_default_xdisplay(), I
> thought that GTK does an XOpenDisplay somewhere and then use the resulting
> display, but there is maybe more.
> what if in the dock you use cairo_dock_get_Xdisplay instead of
> gdk_x11_get_default_xdisplay (the dock opens a distinct connection to X for
> the taskbar, and uses the GTK one for the drawings) ?
> 
> 2011/2/5 Benjamin <712052@xxxxxxxxxxxxxxxxxx>
> 
>> Sorry, it's me again. But the problem that cairo-dock cannot use OpenGL
>> (output of cairo-dock below) doesn't let me be. So, i took the relevant
>> code from cairo-dock-opengl.c (revision 678)and wrote a little test
>> program. The only difference is using XOpenDisplay(NULL) instead of
>> gdk_x11_get_default_xdisplay() since the latter one always caused a
>> segfault (don't know why). And, tata, I've gotten the expected result
>> (as expected with respect to glxinfo's output):
>>
>>  this time got 8 FBConfig(s)
>>  Strike, found a GLX visual with alpha-support!
>>
>> Any ideas?
>>
>> greetz
>> Benjamin
>>
>> warning :
>>
>> (/build/buildd/cairo-dock-2.3.0~0beta1~20110131/src/gldit/cairo-dock-opengl.c:cairo_dock_initialize_opengl_backend:171)
>>
>>  couldn't find an appropriate visual, trying to get one without Stencil
>> buffer
>> (it may cause some little deterioration in the rendering) ...
>> warning :
>>
>> (/build/buildd/cairo-dock-2.3.0~0beta1~20110131/src/gldit/cairo-dock-opengl.c:cairo_dock_initialize_opengl_backend:189)
>>
>>  still couldn't find an appropriate visual ourself, trying something
>> else, this may not work with some drivers ...
>> warning :
>>
>> (/build/buildd/cairo-dock-2.3.0~0beta1~20110131/src/gldit/cairo-dock-opengl.c:cairo_dock_initialize_opengl_backend:200)
>>
>>  no luck, trying without double-buffer and stencil ...
>> warning :
>>
>> (/build/buildd/cairo-dock-2.3.0~0beta1~20110131/src/gldit/cairo-dock-opengl.c:cairo_dock_initialize_opengl_backend:212)
>>
>>  we could not get an ARGB-visual, trying to get an RGB one (fake
>> transparency will be used in return) ...
>> warning :
>>
>> (/build/buildd/cairo-dock-2.3.0~0beta1~20110131/src/gldit/cairo-dock-opengl.c:cairo_dock_initialize_opengl_backend:240)
>>
>>  still no visual, this is the last chance
>> warning :
>>
>> (/build/buildd/cairo-dock-2.3.0~0beta1~20110131/src/gldit/cairo-dock-opengl.c:cairo_dock_initialize_opengl_backend:252)
>>
>>  couldn't find a suitable GLX Visual, OpenGL can't be used.
>>  (sorry to say that, but your graphic card and/or its driver is crappy)
>>
>> --
>> You received this bug notification because you are a member of Cairo-
>> Dock Team, which is subscribed to Cairo-Dock Core.
>> https://bugs.launchpad.net/bugs/712052
>>
>> Title:
>>  Wrong element set to None of array doubleBufferAttributes?
>>
>> Status in Cairo-Dock : Core:
>>  Invalid
>>
>> Bug description:
>>  cairo-dock states that I can't use OpenGL. Curios, since glxinfo says
>>  I have (Intel Ironlake). After some investigation I found a peace of
>>  code in cairo-dock-opengl.c (line 173) where
>>  doubleBufferAttributes[16] is set to None (old value is
>>  GLX_STENCIL_SIZE). After taking a look at this array, i think it must
>>  be index 17, since all even indexes are attributes and all odd are the
>>  expected values, aren't they? However, that would not solve my
>>  problems since GL_MULTISAMPLESAMPLES is expected to be 2 and glxinfo
>>  says that may graphics card don't support MS at all (if column MS
>>  num/ms ns of glxinfo's output is the correct one).
>>
>>
>>
>> _______________________________________________
>> Mailing list: https://launchpad.net/~cairo-dock-team<https://launchpad.net/%7Ecairo-dock-team>
>> Post to     : cairo-dock-team@xxxxxxxxxxxxxxxxxxx
>> Unsubscribe : https://launchpad.net/~cairo-dock-team<https://launchpad.net/%7Ecairo-dock-team>
>> More help   : https://help.launchpad.net/ListHelp
>>
>

-- 
You received this bug notification because you are a member of Cairo-
Dock Team, which is subscribed to Cairo-Dock Core.
https://bugs.launchpad.net/bugs/712052

Title:
  Wrong element set to None of array doubleBufferAttributes?

Status in Cairo-Dock : Core:
  Invalid

Bug description:
  cairo-dock states that I can't use OpenGL. Curios, since glxinfo says
  I have (Intel Ironlake). After some investigation I found a peace of
  code in cairo-dock-opengl.c (line 173) where
  doubleBufferAttributes[16] is set to None (old value is
  GLX_STENCIL_SIZE). After taking a look at this array, i think it must
  be index 17, since all even indexes are attributes and all odd are the
  expected values, aren't they? However, that would not solve my
  problems since GL_MULTISAMPLESAMPLES is expected to be 2 and glxinfo
  says that may graphics card don't support MS at all (if column MS
  num/ms ns of glxinfo's output is the correct one).





References