From 0d59c7bc6bd6991ea87f66dba9962fd47f22ae640817dce8ddedb0bad2bc644e Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Wed, 3 Aug 2011 16:41:47 +0000 Subject: [PATCH] Enable USE_GLU_TESS OBS-URL: https://build.opensuse.org/package/show/games/prboom-plus?expand=0&rev=4 --- prboom-enable-tessellation.diff | 26 ++++++++++++++++++++++++++ prboom-plus.changes | 6 ++++++ prboom-plus.spec | 5 +++-- 3 files changed, 35 insertions(+), 2 deletions(-) create mode 100644 prboom-enable-tessellation.diff diff --git a/prboom-enable-tessellation.diff b/prboom-enable-tessellation.diff new file mode 100644 index 0000000..2e4a580 --- /dev/null +++ b/prboom-enable-tessellation.diff @@ -0,0 +1,26 @@ +Date: 2011-08-03 18:36:44+0200 +From: Jan Engelhardt + +Always do tesselation, because otherwise, map hacks like +self-referencing sectors (cf. +http://doom.wikia.com/wiki/Making_a_self-referencing_sector) will not +be rendered. + +--- + src/gl_main.c | 3 +++ + 1 file changed, 3 insertions(+) + +Index: prboom-plus-2.5.1.1/src/gl_main.c +=================================================================== +--- prboom-plus-2.5.1.1.orig/src/gl_main.c ++++ prboom-plus-2.5.1.1/src/gl_main.c +@@ -83,6 +83,9 @@ + #ifdef USE_CUSTOM_QSORT + #include "qsort.h" + #endif ++#ifndef USE_GLU_TESS ++# define USE_GLU_TESS 1 ++#endif + + int triangulate_subsectors = 0; + // All OpenGL extentions will be disabled in gl_compatibility mode diff --git a/prboom-plus.changes b/prboom-plus.changes index db11eb6..1b47051 100644 --- a/prboom-plus.changes +++ b/prboom-plus.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Aug 3 16:38:07 UTC 2011 - jengelh@medozas.de + +- Enable missing USE_GLU_TESS for the self-referencing sector hack + to be rendered. + ------------------------------------------------------------------- Mon Jun 20 11:25:36 UTC 2011 - jengelh@medozas.de diff --git a/prboom-plus.spec b/prboom-plus.spec index 7a30fd8..6e2675a 100644 --- a/prboom-plus.spec +++ b/prboom-plus.spec @@ -1,4 +1,3 @@ - Name: prboom-plus Version: 2.5.1.1 Release: 0 @@ -12,6 +11,8 @@ Patch1: prboom-nodatetime.diff Patch2: prboom-types1.diff Patch3: prboom-types2.diff Patch4: prboom-protos.diff +Patch5: prboom-enable-tessellation.diff +Source2: clean_source.sh BuildRoot: %_tmppath/%name-%version-build BuildRequires: Mesa-devel, fluidsynth-devel, libSDL_image-devel @@ -46,7 +47,7 @@ Author(s): %prep %setup -q -%patch -P 1 -P 2 -P 3 -P 4 -p1 +%patch -P 1 -P 2 -P 3 -P 4 -P 5 -p1 %build ./bootstrap;