← Back to team overview

cairo-dock-team team mailing list archive

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

 

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).





Follow ups

References