[Wine] Re: OpenGL issues on OSX (wine 1.3.21)

asiga wineforum-user at winehq.org
Sat Jun 4 16:23:01 CDT 2011


doh123 wrote:
> 
> asiga wrote:
> > 
> > And, how are you rendering offscreen? With pbuffers? If affirmative, I believe pbuffers aren't supported in Apple's GLX, but framebuffer objects (FBOs) are supported. Can I try to rewrite the pbuffer code and translate it to FBOs, or would it take thousands of hundreds of code lines?
> > 
> > Anyway, first of all, I need to be sure what lines in the source are triggering the above warnings, but searched the source without success. Any advice for finding them?
> > 
> > Thanks!
> 
> 
> FBO is default as far as I know.


After debugging the penguin demo in relay mode, these are all the wgl-related calls that happen before the errors are output (where [...] means non-wgl calls have been ommited)


Code:

[...]
0029:Call gdi32.wglCreateContext(000006cc) ret=00407ca7
0029:Ret  gdi32.wglCreateContext() retval=0017e708 ret=00407ca7
[...]
0029:Call user32.GetDC(00000000) ret=00497402
0029:Ret  user32.GetDC() retval=000006b4 ret=00497402
0029:Call gdi32.GetDeviceCaps(000006b4,0000000e) ret=0049741d
0029:Ret  gdi32.GetDeviceCaps() retval=00000001 ret=0049741d
0029:Call gdi32.GetDeviceCaps(000006b4,0000000c) ret=00497435
0029:Ret  gdi32.GetDeviceCaps() retval=00000020 ret=00497435
0029:Call user32.ReleaseDC(00000000,000006b4) ret=00497454
0029:Ret  user32.ReleaseDC() retval=00000001 ret=00497454
0029:Ret  window proc 0x42dc00 (hwnd=0x30076,msg=WM_ERASEBKGND,wp=000006cc,lp=00000000) retval=00000001
0029:Call window proc 0x42dc00 (hwnd=0x30076,msg=WM_WINDOWPOSCHANGED,wp=00000000,lp=008aed24)
0029:Call user32.DefWindowProcA(00030076,00000047,00000000,008aed24) ret=0042de70
0029:Call window proc 0x42dc00 (hwnd=0x30076,msg=WM_SIZE,wp=00000000,lp=00c80184)
0029:Call user32.GetWindow(00030076,00000005) ret=00431c69
0029:Ret  user32.GetWindow() retval=00000000 ret=00431c69
0029:Call user32.GetWindowRect(00030076,008ad630) ret=0042ce4b
0029:Ret  user32.GetWindowRect() retval=00000001 ret=0042ce4b
0029:Call user32.GetClientRect(00030076,008ad550) ret=0042cfe3
0029:Ret  user32.GetClientRect() retval=00000001 ret=0042cfe3
0029:Call gdi32.wglMakeCurrent(000006cc,0017e708) ret=00407a08
Sat Jun  4 23:12:07 mba-cbu.local wine[613] <Error>: unknown error code: invalid drawable
Sat Jun  4 23:12:07 mba-cbu.local wine[613] <Error>: kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.
set off screen: invalid drawable
0029:Ret  gdi32.wglMakeCurrent() retval=00000000 ret=00407a08



So, it seems the warnings are triggered by gdi32.wglMakeCurrent(). Any hint on what can be happening here, and where should I be looking at?

Thanks!







More information about the wine-users mailing list