Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 100374 - games-sports/trigger doesn't work with latest nvidia opengl
Summary: games-sports/trigger doesn't work with latest nvidia opengl
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-26 09:50 UTC by David Grant
Modified: 2005-07-31 00:07 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
This patch also sets opengl 1.5 capability when seeing a 2.0 version (trigger-0.5.1c-glx-check.patch,590 bytes, patch)
2005-07-30 03:42 UTC, Bernard Cafarelli
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description David Grant 2005-07-26 09:50:25 UTC
When trying to run trigger after doing opengl-update nvidia, I get the following
error message:

GLEW failed to initialise: GL 1.1 and up are not supported

If I do opengl-update xorg-x11, however, I get:

GLEW initialized
Graphics: NVIDIA Corporation GeForce FX 5900XT/AGP/SSE/3DNOW!
Using OpenGL 1.2

and the game loads. Is this a gentoo issue or an upstream one?
Comment 1 Mr. Bones. (RETIRED) gentoo-dev 2005-07-26 11:32:47 UTC
works fine here.  You didn't provide any actual information though it's tough to
say what the problem is.  It's probably something specific to your machine though.
Comment 2 David Grant 2005-07-26 13:28:46 UTC
What version of the nvidia packages are you using?

BTW, can you get your joystick to work in trigger? My joystick works fine in
supertux for example, and it is detected by trigger, but it doesn't work. I see
very little info about this from upstream. If there is a workaround that I don't
know about, please let me know, and maybe we can add an einfo line.

Comment 3 David Grant 2005-07-26 13:40:18 UTC
apologies, I've found information about joystick configuration. It's in
~/.trigger/trigger.config.

Maybe add an einfo for this. There is also some video config in there as wel. As
there is no config within the game, knowing about this file is essential.
Comment 4 Bernard Cafarelli gentoo-dev 2005-07-27 13:05:22 UTC
The problem appears with latest nvidia drivers (1.0.7667 here), a possible cause
is (found on another bugreport, but I can't remember the affected opengl program):
Nvidia has changed its opengl version to 2.0 (instead of 1.x), but the game only
checks for the last digit (and 0<1)...


My emerge info:
Portage 2.0.51.22-r2 (default-linux/amd64/2005.0, gcc-3.4.4, glibc-2.3.5-r1,
2.6.12-gentoo-r6 x86_64)
=================================================================
System uname: 2.6.12-gentoo-r6 x86_64 AMD Athlon(tm) 64 Processor 3700+
Gentoo Base System version 1.6.13
ccache version 2.4 [disabled]
dev-lang/python:     2.4.1-r1
sys-apps/sandbox:    1.2.11
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/grass60/etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib64/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/texmf/web2c
/etc/env.d"
CXXFLAGS="-march=athlon64 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="fr_FR@euro"
LC_ALL="fr_FR"
LINGUAS="fr fr_FR"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="amd64 X aalib acpi aim alsa apache2 avi bash-completion berkdb bitmap-fonts
bonobo bzip2 bzlib cddb cdr crypt cups curl curlwrappers dga dio dvb dvd dvdr
dvdread eds encode exif fam fastcgi ffmpeg fftw flac foomaticdb fortran ftp gb
gcj gd gdbm gif glut gnome gnustep gnutls gphoto2 gpm gstreamer gtk gtk2 gtkhtml
guile iconv imagemagick imap imlib ipv6 jabber java jikes joystick jpeg junit
kde libcaca libwww lirc live lzw lzw-tiff mad matroska mbox mikmod mime mng
motif mozilla mp3 mpeg msn nas ncurses nls nptl nptlonly nvidia objc offensive
ogg oggvorbis openal opengl oscar oss pam pcmcia pcre pda pdflib perl php pic
png posix ppds python qt quicktime readline real recode samba scanner sdl shared
sharedmem simplexml slang snmp sockets socks5 speex spell ssl svg tcltk tcpd
tetex theora threads tiff truetype truetype-fonts type1-fonts unicode usb
userlocales v4l vcd vorbis wifi wxwindows xface xine xinerama xml xml2 xmlrpc
xmms xosd xpm xv xvid yahoo zlib linguas_fr linguas_fr_FR userland_GNU
kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LDFLAGS
Comment 5 Mr. Bones. (RETIRED) gentoo-dev 2005-07-27 13:10:30 UTC
Good info.
Comment 6 SpanKY gentoo-dev 2005-07-29 22:48:24 UTC
fixed in cvs

nvidia is reported as '2.0.0' and the game compares the 2nd value to '1' without
checking the 1st value too
Comment 7 Bernard Cafarelli gentoo-dev 2005-07-30 03:42:55 UTC
Created attachment 64723 [details, diff]
This patch also sets opengl 1.5 capability when seeing a 2.0 version

I came up with the same fix, I added another check so that glew is informed of
opengl >1.1 capabilities (without the second test, the game only uses 1.1
extensions).

I don't know if they ared used in-game though (the glewInit... calls are
different but after that...)
Comment 8 SpanKY gentoo-dev 2005-07-31 00:07:30 UTC
thanks, updated patch