mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-20 19:41:34 +01:00
graphics/LDView: Patched to fix usage with NVidia cards
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
This commit is contained in:
parent
92258817eb
commit
0b9284970c
3 changed files with 29 additions and 4 deletions
|
@ -4,14 +4,22 @@
|
|||
# a program to visualize LDraw files
|
||||
|
||||
# Written by Niels Horn - niels.horn@gmail.com
|
||||
# revision date 2009/12/09
|
||||
# revision date 2010/06/05
|
||||
|
||||
PRGNAM=LDView
|
||||
VERSION=4.1
|
||||
ARCH=${ARCH:-i486}
|
||||
BUILD=${BUILD:-1}
|
||||
BUILD=${BUILD:-2}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
if [ -z "$ARCH" ]; then
|
||||
case "$( uname -m )" in
|
||||
i?86) ARCH=i486 ;;
|
||||
arm*) ARCH=arm ;;
|
||||
# Unless $ARCH is already set, use uname -m for all other archs:
|
||||
*) ARCH=$( uname -m ) ;;
|
||||
esac
|
||||
fi
|
||||
|
||||
CWD=$(pwd)
|
||||
TMP=${TMP:-/tmp/SBo}
|
||||
PKG=$TMP/package-$PRGNAM
|
||||
|
@ -29,6 +37,10 @@ elif [ "$ARCH" = "x86_64" ]; then
|
|||
SLKCFLAGS="-O2 -fPIC"
|
||||
LIBDIRSUFFIX="64"
|
||||
LDVDEV64=YES
|
||||
else
|
||||
SLKCFLAGS="-O2"
|
||||
LIBDIRSUFFIX=""
|
||||
LDVDEV64=""
|
||||
fi
|
||||
|
||||
set -e
|
||||
|
@ -41,6 +53,9 @@ cd $PRGNAM-$VERSION
|
|||
chown -R root:root .
|
||||
chmod -R u+w,go+r-w,a-s .
|
||||
|
||||
# Patch for a bug in QT, solves problems on NVIDIA cards
|
||||
patch -p1 < $CWD/opengl.patch
|
||||
|
||||
# the 'makeall' script is in the QT directory
|
||||
cd QT
|
||||
export LDVDEV64
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
PRGNAM="LDView"
|
||||
VERSION="4.1"
|
||||
HOMEPAGE="http://ldview.sourceforge.net"
|
||||
DOWNLOAD="http://www.nielshorn.net/_download/LDView-4.1.tar.gz"
|
||||
DOWNLOAD="http://www.nielshorn.net/_download/slackware/source/LDView-4.1.tar.gz"
|
||||
MD5SUM="942fc33b061bffc5d3e9cdf06622a878"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
|
|
10
graphics/LDView/opengl.patch
Normal file
10
graphics/LDView/opengl.patch
Normal file
|
@ -0,0 +1,10 @@
|
|||
--- LDView-4.1/QT/ModelViewerWidget.cpp 2009-12-01 14:27:54.000000000 -0200
|
||||
+++ LDView-4.1_patched/QT/ModelViewerWidget.cpp 2010-05-25 20:15:41.000000000 -0300
|
||||
@@ -403,6 +403,7 @@
|
||||
if (!painting && (saving || !loading))
|
||||
{
|
||||
painting = true;
|
||||
+ glEnable(GL_DEPTH_TEST);
|
||||
if (saving)
|
||||
{
|
||||
if (!TREGLExtensions::haveFramebufferObjectExtension())
|
Loading…
Reference in a new issue