DirectX 8 Question
I''m creating a game using DirectX 8 and I am trying to get it to run on different machines. It will run on my PIII machine but when I try it on a PII or a Celeron machine the program crashes during initialization. I''ve tracked the problem down to the LPDIRECT3D8->CreateDevice() call. Like I said before it will work on one machine but not others. If anyone has any ideas as to why or how to fix the problem please let me know.
kitawolf
What parameters are you passing to the CreateDevice() function? Are you sure the display adapter can handle what you''re requesting?
[ GDNet Start Here | GDNet FAQ | MS RTFM | STL | Google ]
Thanks to Kylotan for the idea!
[ GDNet Start Here | GDNet FAQ | MS RTFM | STL | Google ]
Thanks to Kylotan for the idea!
- What return code are you getting from CreateDevice() ?
- What does the debug output say (with the debug runtimes installed) ?
It''s most likely that the graphics card in the machine this fails on doesn''t support something you''re asking for when you create the device. Examples are: asking for hardware vertex processing when the graphics card doesn''t have hardware T&L, asking for a frame buffer or Z buffer format which won''t work, asking for a sample or present mode which won''t work on that particular hardware.
--
Simon O''''Connor
Creative Asylum Ltd
www.creative-asylum.com
- What does the debug output say (with the debug runtimes installed) ?
It''s most likely that the graphics card in the machine this fails on doesn''t support something you''re asking for when you create the device. Examples are: asking for hardware vertex processing when the graphics card doesn''t have hardware T&L, asking for a frame buffer or Z buffer format which won''t work, asking for a sample or present mode which won''t work on that particular hardware.
--
Simon O''''Connor
Creative Asylum Ltd
www.creative-asylum.com
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement