couldn't initialize OpenGL, expect problems

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
sgsdxzy
Level 2
Level 2
Posts: 18
Joined: Wed Nov 02, 2011 7:03 am

couldn't initialize OpenGL, expect problems

Post by sgsdxzy »

The problem is mainly described here: http://forum.winehq.org/viewtopic.php?t=14027
But this time, I tried wine 1.3.32 and the problem seemed changed. I got an opengl error. It seems that I am at the corner, just misconfigured something. I reinstalled wine 1.3.32, the problem remains. What should I do?

The error in terminal:
err:wgl:X11DRV_WineGL_InitOpenglInfo couldn't initialize OpenGL, expect problems
err:d3d_caps:WineD3D_CreateFakeGLContext Can't find a suitable iPixelFormat.
err:d3d:InitAdapters Failed to get a gl context for default adapter
Direct3D8 is not available without OpenGL.

And my game pop up a windows telling me I have to install directx 8.1 or later
sgsdxzy
Level 2
Level 2
Posts: 18
Joined: Wed Nov 02, 2011 7:03 am

Post by sgsdxzy »

I reinstalled my video driver and it does't help.
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Post by dimesio »

sgsdxzy wrote:I reinstalled my video driver and it does't help.
Did you install 32 bit opengl?
sgsdxzy
Level 2
Level 2
Posts: 18
Joined: Wed Nov 02, 2011 7:03 am

Post by sgsdxzy »

You mean lib32-libgl? I installed lib32-mesa and it includes lib32-libgl.
Or should I try lib32-nvidia-utils?
I will test soon.
sgsdxzy
Level 2
Level 2
Posts: 18
Joined: Wed Nov 02, 2011 7:03 am

Post by sgsdxzy »

I tried lib32-nvidia-utils. Now the directx problem is solved. But new problem arise:

fixme:win:EnumDisplayDevicesW ((null),0,0x338718,0x00000000), stub!
fixme:d3d:swapchain_init The application requested more than one back buffer, this is not properly supported.
Please configure the application to use double buffering (1 back buffer) if possible.
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
err:ole:CoGetClassObject class {2b2cc8b0-2dc0-48c6-b6fd-c07820a6477e} not registered
err:ole:CoGetClassObject class {2b2cc8b0-2dc0-48c6-b6fd-c07820a6477e} not registered
err:ole:create_server class {2b2cc8b0-2dc0-48c6-b6fd-c07820a6477e} not registered
err:ole:CoGetClassObject no class object {2b2cc8b0-2dc0-48c6-b6fd-c07820a6477e} could be created for context 0x7

What's wrong?
sgsdxzy
Level 2
Level 2
Posts: 18
Joined: Wed Nov 02, 2011 7:03 am

Post by sgsdxzy »

I tried import registry:

Code: Select all

[HKEY_CLASSES_ROOT\CLSID\{2B2CC8B0-2DC0-48c6-B6FD-C07820A6477E}]
@="FEBrowserEngine2 Class"
[HKEY_CLASSES_ROOT\CLSID\{2B2CC8B0-2DC0-48c6-B6FD-C07820A6477E}\Control]
[HKEY_CLASSES_ROOT\CLSID\{2B2CC8B0-2DC0-48c6-B6FD-C07820A6477E}\InprocServer32]
@="C:\\Program Files (x86)\\zh\\Command and Conquer Generals\\BrowserEngine.DLL"
"ThreadingModel"="Apartment"
[HKEY_CLASSES_ROOT\CLSID\{2B2CC8B0-2DC0-48c6-B6FD-C07820A6477E}\Insertable]
[HKEY_CLASSES_ROOT\CLSID\{2B2CC8B0-2DC0-48c6-B6FD-C07820A6477E}\MiscStatus]
@="0"
[HKEY_CLASSES_ROOT\CLSID\{2B2CC8B0-2DC0-48c6-B6FD-C07820A6477E}\MiscStatus\1]
@="131473"
[HKEY_CLASSES_ROOT\CLSID\{2B2CC8B0-2DC0-48c6-B6FD-C07820A6477E}\ProgID]
@="BrowserEngine.FEBrowserEngine2.1"
[HKEY_CLASSES_ROOT\CLSID\{2B2CC8B0-2DC0-48c6-B6FD-C07820A6477E}\Programmable]
[HKEY_CLASSES_ROOT\CLSID\{2B2CC8B0-2DC0-48c6-B6FD-C07820A6477E}\ToolboxBitmap32]
@="C:\\Program Files (x86)\\zh\\Command and Conquer Generals\\BrowserEngine.DLL, 101"
[HKEY_CLASSES_ROOT\CLSID\{2B2CC8B0-2DC0-48c6-B6FD-C07820A6477E}\TypeLib]
@="{6EE45698-21BA-420d-AD40-1B547699BEFB}"
[HKEY_CLASSES_ROOT\CLSID\{2B2CC8B0-2DC0-48c6-B6FD-C07820A6477E}\Version]
@="1.0"
[HKEY_CLASSES_ROOT\CLSID\{2B2CC8B0-2DC0-48c6-B6FD-C07820A6477E}\VersionIndependentProgID]
@="BrowserEngine.FEBrowserEngine2"
And the ole error is fixed. However still a problem remians:

Code: Select all

fixme:win:EnumDisplayDevicesW ((null),0,0x338718,0x00000000), stub!
fixme:d3d:swapchain_init The application requested more than one back buffer, this is not properly supported.
Please configure the application to use double buffering (1 back buffer) if possible.
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
fixme:d3d8:ValidatePixelShader (0x2ee54d4 (nil) 0 (nil)): stub
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
fixme:imm:ImmReleaseContext (0x30098, 0x132780): stub
fixme:font:WineEngRemoveFontResourceEx (L"ARIAG.TTF", 0, (nil)): stub
I don't know how to use double buffering for this game……What to do now?[/code]
sgsdxzy
Level 2
Level 2
Posts: 18
Joined: Wed Nov 02, 2011 7:03 am

Post by sgsdxzy »

The game runs now! Finally I have managed it myself.
Robertpro
Newbie
Newbie
Posts: 1
Joined: Mon Nov 05, 2012 6:22 pm

Re: hi!!!

Post by Robertpro »

sgsdxzy wrote:The game runs now! Finally I have managed it myself.
i have the same problem..
u can tell me how u fix it?

Thx!!
Locked