project-navigation
Personal tools

Author Topic: Video problem: Could not create GL context. I'm using 32bpp.  (Read 11114 times)

rocketman

  • Guest
Thank you for a great game!  I've always been a fan of X-Com type games.

I checked out the latest version directly from the trunk and compiled it and the maps as stated in the users guide.

When I attempt to run ufo I get:

richard@panther:~/ufoai$ ./ufo

---- filesystem initialization -----
Adding game dir: /usr/local/lib/ufoai/base
Adding game dir: /usr/local/share/ufoai/base
Adding game dir: ./base
using /home/user/.ufoai/2.3-dev/base for writing
Adding game dir: /home/user/.ufoai/2.3-dev/base
execing default.cfg
couldn't exec config.cfg
execing keys.cfg

----- network initialization -------
libcurl/7.18.1 OpenSSL/0.9.8g zlib/1.2.3.3 c-ares/1.5.1 libidn/1.8 libssh2/0.18 initialized.

------ server initialization -------
added 7 maps to the mapcycle
...using language: en_US.UTF-8

----- console initialization -------
loaded console history commands: 0
Console initialized.

------- video initialization -------
SDL version: 1.2.12
I: desktop depth: 32bpp
I: video memory: 0
I: video driver: x11
I: setting mode 6: 1024x768 (fullscreen: no)
I: set swap control to 0
SDL SetVideoMode failed: Could not create GL context
Failed to set video mode 1024x768 windowed.
I: set swap control to 0
SDL SetVideoMode failed: Could not create GL context
Wrote keys.cfg
Error: Video subsystem failed to initialize

-------------------------------------------------------------------------------

My system is:

> uname -a
Linux panther 2.6.24-1-amd64 #1 SMP Sat May 10 09:28:10 UTC 2008 x86_64 GNU/Linux

-------------------------------------------------------------------------------

My xorg.conf file is as follows, hopes this helps:

Section "ServerLayout"
    Identifier     "Default Layout"
    Screen         "Default Screen" 0 0
    InputDevice    "Generic Keyboard"
    InputDevice    "Configured Mouse"
EndSection

Section "Files"
EndSection

Section "Module"
    Load           "glx"
EndSection

Section "InputDevice"
    Identifier     "Generic Keyboard"
    Driver         "kbd"
    Option         "CoreKeyboard"
    Option         "XkbRules" "xorg"
    Option         "XkbModel" "pc104"
    Option         "XkbLayout" "us"
    Option         "XkbVariant" "dvorak"
EndSection

Section "InputDevice"
    Identifier     "Configured Mouse"
    Driver         "mouse"
    Option         "CorePointer"
    Option         "Device" "/dev/input/mice"
    Option         "Protocol" "ImPS/2"
    Option         "Emulate3Buttons" "true"
EndSection

Section "Monitor"
    Identifier     "HP w2207"
    HorizSync       82.0 - 82.0
    VertRefresh     76.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "nVidia Corporation NVIDIA Default Card"
    Driver         "nvidia"
EndSection

Section "Screen"
    Identifier     "Default Screen"
    Device         "nVidia Corporation NVIDIA Default Card"
    Monitor        "HP w2207"
    DefaultDepth    24
    Option         "RenderAccel" "true"
    Option         "TwinView"
    Option         "MetaModes" "1680x1050 1280x1024"
    Option         "TwinViewOrientation" "LeftOf"
    SubSection     "Display"
        Depth       24
        Modes      "1920x1440" "1920x1200" "1856x1392" "1792x1344" "1680x1050" "1600x1200" "1440x900" "1400x1050" "1280x1024" "1280x960" "1280x854" "1024x768"
    EndSubSection
EndSection
« Last Edit: June 19, 2008, 04:47:21 am by rocketman »

Offline Darkpriest667

  • Squad Leader
  • ****
  • Posts: 149
    • View Profile
Re: Video problem: Could not create GL context. I'm using 32bpp.
« Reply #1 on: June 19, 2008, 05:21:06 pm »
you need to change your display settings to 16 bpp graphics..



sorry this is linux i may be incorrect

rocketman

  • Guest
Re: Video problem: Could not create GL context. I'm using 32bpp.
« Reply #2 on: June 19, 2008, 08:28:52 pm »
Given the comments from the moderators on this thread:

http://ufoai.ninex.info/forum/index.php?topic=2726.0

32 bpp is the correct setting.

16 bpp was used in a previous version which might be what you were thinking of.

rocketman

  • Guest
Re: Video problem: Could not create GL context. I'm using 32bpp.
« Reply #3 on: June 20, 2008, 01:30:43 pm »
I have the latest version of the Debian testing branch.

Does anyone have any ideas regarding why I keep on getting the error above?

thanks!

rocketman

  • Guest
Re: Video problem: Could not create GL context. I'm using 32bpp.
« Reply #4 on: June 22, 2008, 01:12:19 am »
You know I would really love to debug this problem and actually play this game.

Some feedback might help me narrow down what might be the issue.

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: Video problem: Could not create GL context. I'm using 32bpp.
« Reply #5 on: June 22, 2008, 08:56:40 am »
in 99,9% it's a video driver problem (what's the ouput of glxinfo | grep direct)

rocketman

  • Guest
Re: Video problem: Could not create GL context. I'm using 32bpp.
« Reply #6 on: June 22, 2008, 08:57:21 pm »
Thank you for the heads up.

I downloaded the latest driver for my video card and now it works.  :)