diff options
author | pav <pav@FreeBSD.org> | 2004-06-22 15:59:39 +0800 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2004-06-22 15:59:39 +0800 |
commit | 8c692d5dcb389a7a13bd337313738fdd892dcc26 (patch) | |
tree | 61f038109f8582a45efd302bb77ed4f10ad53d4d /astro | |
parent | 999e5713511694dda0a6a0d2429ea5ba786e5910 (diff) | |
download | freebsd-ports-gnome-8c692d5dcb389a7a13bd337313738fdd892dcc26.tar.gz freebsd-ports-gnome-8c692d5dcb389a7a13bd337313738fdd892dcc26.tar.zst freebsd-ports-gnome-8c692d5dcb389a7a13bd337313738fdd892dcc26.zip |
- Fix runtime on nvidia driver
PR: ports/67904
Reported by: astro <e99@gmx.net>
Submitted by: Jean-Yves Lefort <jylefort@brutele.be> (maintainer)
Diffstat (limited to 'astro')
-rw-r--r-- | astro/stellarium/Makefile | 1 | ||||
-rw-r--r-- | astro/stellarium/files/patch-src_stel_sdl.cpp | 23 |
2 files changed, 24 insertions, 0 deletions
diff --git a/astro/stellarium/Makefile b/astro/stellarium/Makefile index c96f03e55199..a3ca6d2bd6a6 100644 --- a/astro/stellarium/Makefile +++ b/astro/stellarium/Makefile @@ -7,6 +7,7 @@ PORTNAME= stellarium PORTVERSION= 0.6.0 +PORTREVISION= 1 CATEGORIES= astro MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} diff --git a/astro/stellarium/files/patch-src_stel_sdl.cpp b/astro/stellarium/files/patch-src_stel_sdl.cpp new file mode 100644 index 000000000000..f31053849c37 --- /dev/null +++ b/astro/stellarium/files/patch-src_stel_sdl.cpp @@ -0,0 +1,23 @@ +--- src/stel_sdl.cpp.orig Thu Jun 17 14:11:01 2004 ++++ src/stel_sdl.cpp Thu Jun 17 14:16:40 2004 +@@ -60,9 +60,18 @@ + Screen = SDL_SetVideoMode(core->get_screen_W(), core->get_screen_H(), core->get_bppMode(), Vflags); + if(!Screen) + { +- printf("sdl: Couldn't set %dx%d video mode: %s!", ++ printf("sdl: Couldn't set %dx%d video mode (%s), retrying with stencil size 0\n", + core->get_screen_W(), core->get_screen_H(), SDL_GetError()); +- exit(-1); ++ ++ SDL_GL_SetAttribute(SDL_GL_STENCIL_SIZE,0); ++ Screen = SDL_SetVideoMode(core->get_screen_W(), core->get_screen_H(), core->get_bppMode(), Vflags); ++ ++ if(!Screen) ++ { ++ printf("sdl: Couldn't set %dx%d video mode: %s!\n", ++ core->get_screen_W(), core->get_screen_H(), SDL_GetError()); ++ exit(-1); ++ } + } + + // Disable key repeat |