Hello,
Localized the problem in the window creation/visual selection code.
(src/unix/video-drivers/glxtool.c/findVisualGlX)
A quick fix allows correct gldblbuffer switch function,
and ignores default/native visual id (since this isn't using double
buffering)
Somebody more familiar in this area to do a better fix?
With which radeon driver -/x window system/version is dri/hardware
accelerated opengl and multiple displays working?
Best regards,
Peter Trauner
--- src/unix/video-drivers/glxtool.c~ 2005-09-16 17:19:01.000000000 +0200
+++ src/unix/video-drivers/glxtool.c 2006-07-23 14:30:33.000000000 +0200
@@ -186,6 +186,8 @@
if(pOwnWin) ownwin=*pOwnWin;
+ glCaps->nativeVisualID=0;
+
do {
if(verbose)
{
--------- log of 106
GLINFO: seeking visual loop# 0
GLINFO: seeking gl capabilities:
gl_supported: 1 !
doubleBuff: 1, rgba: 1, stereo: 0, depthSize: 1,
stencilSize: 0 !
red: 1, green: 1, blue: 1, alpha: 0 !
red accum: 0, green accum: 0, blue accum: 0, alpha accum: 0 !
nativeVisualID: 35 !
findVisualIdByID: Found matching Visual:
vi(ID:35(0x23)):
screen 0, depth 24, class 4,
clrmapsz 256, bitsPerRGB 8
gl_supported: 1 !
doubleBuff: 0, rgba: 1, stereo: 0, depthSize: 24,
stencilSize: 0 !
red: 8, green: 8, blue: 8, alpha: 8 !
red accum: 0, green accum: 0, blue accum: 0, alpha accum: 0 !
nativeVisualID: 35 !
GLINFO: glXCreateContext trial (1) sure 0xbbd87e0
findVisualGlX results vi(ID:35):
screen 0, depth 24, class 4,
clrmapsz 256, bitsPerRGB 8, shared with 0
------- log of quick fix
based upon GLmame v0.6 driver for xmame, written by Mike Oliphant
GLINFO: seeking visual loop# 0
GLINFO: seeking gl capabilities:
gl_supported: 1 !
doubleBuff: 1, rgba: 1, stereo: 0, depthSize: 24,
stencilSize: 0 !
red: 8, green: 8, blue: 8, alpha: 8 !
red accum: 0, green accum: 0, blue accum: 0, alpha accum: 0 !
nativeVisualID: 0 !
findVisualIdByID: No matching visualID found ...
findVisualGlX.glXChooseVisual: found visual(ID:39(0x27))
vi(ID:39(0x27)):
screen 0, depth 24, class 4,
clrmapsz 256, bitsPerRGB 8
gl_supported: 1 !
doubleBuff: 1, rgba: 1, stereo: 0, depthSize: 24,
stencilSize: 0 !
red: 8, green: 8, blue: 8, alpha: 8 !
red accum: 0, green accum: 0, blue accum: 0, alpha accum: 0 !
nativeVisualID: 39 !
GLINFO: glXCreateContext trial (1) sure 0xbbdc3e0
findVisualGlX results vi(ID:39):
screen 0, depth 24, class 4,
clrmapsz 256, bitsPerRGB 8, shared with 0
_______________________________________________
Xmame mailing list
[email protected]
http://toybox.twisted.org.uk/mailman/listinfo/xmame