The last time I was messing around with it, under regular Winders not
Parallels, I had to remove/neuter the pixel format checking to get it to
work.
http://support.realsoftware.com/listarchives/realbasic-games/2006-09/msg00034.html
Worth a shot, since nobody seems to have have ever figured out why that
would happen on some machines but not others.
Michael Diehr wrote:
> I just tried RB3D and agree that it doesn't work in Parallels 3.
>
> Here is the OpenGL code that fails on widows under parallels 2.5 and 3.
> I'm using Open GL Declare Library 1.3.
>
> If TargetWin32
> pixFmt = newMemoryBlock(40)
> pixFmt.short(0) = pixFmt.size//WORD nSize;
> pixFmt.short(2) = 1//WORD nVersion;
> pixFmt.long(4) = PFD_DRAW_TO_WINDOW + PFD_SUPPORT_OPENGL +
> PFD_DOUBLEBUFFER//DWORD dwFlags;
> pixFmt.byte(8) = PFD_TYPE_RGBA//BYTE iPixelType;
> pixFmt.byte(9) = 24//BYTE cColorBits;
> //the following values are all ignored (cRedBits through
> cAccumAlphaBits)
> pixFmt.byte(10) = 0//BYTE cRedBits;
> pixFmt.byte(11) = 0//BYTE cRedShift;
> pixFmt.byte(12) = 0//BYTE cGreenBits;
> pixFmt.byte(13) = 0//BYTE cGreenShift;
> pixFmt.byte(14) = 0//BYTE cBlueBits;
> pixFmt.byte(15) = 0//BYTE cBlueShift;
> pixFmt.byte(16) = 0//BYTE cAlphaBits;
> pixFmt.byte(17) = 0//BYTE cAlphaShift;
> pixFmt.byte(18) = 0//BYTE cAccumBits;
> pixFmt.byte(19) = 0//BYTE cAccumRedBits;
> pixFmt.byte(20) = 0//BYTE cAccumGreenBits;
> pixFmt.byte(21) = 0//BYTE cAccumBlueBits;
> pixFmt.byte(22) = 0//BYTE cAccumAlphaBits;
> //32 bit depth buffer
> pixFmt.byte(23) = 32//BYTE cDepthBits;
> pixFmt.byte(24) = 0//BYTE cStencilBits;
> pixFmt.byte(25) = 0//BYTE cAuxBuffers;
> pixFmt.byte(26) = 0//BYTE iLayerType;
> pixFmt.byte(27) = 0//BYTE bReserved;
> pixFmt.byte(28) = 0//DWORD dwLayerMask;
> pixFmt.byte(32) = 0//DWORD dwVisibleMask;
> pixFmt.byte(36) = 0//DWORD dwDamageMask;
>
> pixHandle = winChoosePixelFormat(hdc, pixFmt)
>
> //check for errors
> err = winGetLastError()
> if err <> 0 then
> msgBox "Error " + str(err) + " when attempting to create the
> pixel format..."
> end if
>
>
> The code fails with error 6. Maybe I'm using a pixel format that
> Parallels doesn't support?
>
>
>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>
|