Hi
I'm pretty new to wine, and this is my first post to the wine-devel list....I hope this is the correct place to send my question
I'm having problems with wglMakeCurrent. I wrote a small OpenGL test program, but it's not working under wine (it works perfectly on Windows). When I call wglMakeCurrent, wine outputs this error:
X Error of failed request: BadMatch (invalid parameter attributes) Major opcode of failed request: 144 (GLX) Minor opcode of failed request: 5 (X_GLXMakeCurrent) Serial number of failed request: 120 Current serial number in output stream: 120
I activated the debug output for opengl, and I can see that the problem is a mismatch between the default visual ID and my program visual ID. At the top of the debug output, I see this: trace:opengl:X11DRV_setup_opengl_visual Visual ID 21 Chosen
and later, when I create my OpenGl context:
trace:opengl:X11DRV_SetPixelFormat - VISUAL_ID 0x23
Obviously, the problem is that my visual ID doesn't match with the X-Window's default, but I need to work using my visual (because I need alpha planes)
Any known workaround or is this a bug on wine's implementation of wglMakeCurrent?
Thanks
Wino
_________________________________________________________________ Take advantage of powerful junk e-mail filters built on patented Microsoft® SmartScreen Technology. http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI... Start enjoying all the benefits of MSN® Premium right now and get the first two months FREE*.
On Mon, Mar 13, 2006 at 01:00:08PM -0500, Wino Rojo wrote:
X Error of failed request: BadMatch (invalid parameter attributes) Major opcode of failed request: 144 (GLX) Minor opcode of failed request: 5 (X_GLXMakeCurrent) Serial number of failed request: 120 Current serial number in output stream: 120
just FYI: I have the same problem with NASCAR Racing Season 2003 in OpenGL mode. And I had the same problem with Pacific Fighters (but not with IL2, which is basically the same engine - but I use now the comined installation). On the other hand several other OpenGL games work flawless (Grand Prix Legends, IL2).
Hey Wino
i think it might be helpfull to at least include the code you wrote. furthermore, my understanding (and someone please correct me if i'm wrong) of wine-devel is to discuss solutions and the like, not for filing bug reports
regards Victor Pelt
On Mon, 2006-03-13 at 13:00 -0500, Wino Rojo wrote:
Hi
I'm pretty new to wine, and this is my first post to the wine-devel list....I hope this is the correct place to send my question
I'm having problems with wglMakeCurrent. I wrote a small OpenGL test program, but it's not working under wine (it works perfectly on Windows). When I call wglMakeCurrent, wine outputs this error:
X Error of failed request: BadMatch (invalid parameter attributes) Major opcode of failed request: 144 (GLX) Minor opcode of failed request: 5 (X_GLXMakeCurrent) Serial number of failed request: 120 Current serial number in output stream: 120
I activated the debug output for opengl, and I can see that the problem is a mismatch between the default visual ID and my program visual ID. At the top of the debug output, I see this: trace:opengl:X11DRV_setup_opengl_visual Visual ID 21 Chosen
and later, when I create my OpenGl context:
trace:opengl:X11DRV_SetPixelFormat - VISUAL_ID 0x23
Obviously, the problem is that my visual ID doesn't match with the X-Window's default, but I need to work using my visual (because I need alpha planes)
Any known workaround or is this a bug on wine's implementation of wglMakeCurrent?
Thanks
Wino
Take advantage of powerful junk e-mail filters built on patented Microsoft SmartScreen Technology. http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI... Start enjoying all the benefits of MSN Premium right now and get the first two months FREE*.
On 3/13/06, Wino Rojo winorojo@hotmail.com wrote:
Hi
I'm pretty new to wine, and this is my first post to the wine-devel list....I hope this is the correct place to send my question
I'm having problems with wglMakeCurrent. I wrote a small OpenGL test program, but it's not working under wine (it works perfectly on Windows). When I call wglMakeCurrent, wine outputs this error:
X Error of failed request: BadMatch (invalid parameter attributes) Major opcode of failed request: 144 (GLX) Minor opcode of failed request: 5 (X_GLXMakeCurrent) Serial number of failed request: 120 Current serial number in output stream: 120
I activated the debug output for opengl, and I can see that the problem is a mismatch between the default visual ID and my program visual ID. At the top of the debug output, I see this: trace:opengl:X11DRV_setup_opengl_visual Visual ID 21 Chosen
and later, when I create my OpenGl context:
trace:opengl:X11DRV_SetPixelFormat - VISUAL_ID 0x23
Obviously, the problem is that my visual ID doesn't match with the X-Window's default, but I need to work using my visual (because I need alpha planes)
Any known workaround or is this a bug on wine's implementation of wglMakeCurrent?
Thanks
Wino
Looks like another example of bug 4143 or 4604. Proposed patches are here: http://bugs.winehq.org/show_bug.cgi?id=4143
Please try them out and see if it fixes the problem. It will also help for you to post the test program somewhere so other people can try and maybe it can be included in the wine test suite.
Jesse