diff options
author | joerg <joerg> | 2015-03-08 23:25:39 +0000 |
---|---|---|
committer | joerg <joerg> | 2015-03-08 23:25:39 +0000 |
commit | 777198bce72633ab6cc27fec629b7befa10026f8 (patch) | |
tree | 3c8196dd75033937d273955203aa5be61d078128 /benchmarks/glmark2/patches/patch-src_scene-refract.cpp | |
parent | 67303af03b0956c86a3a96d842c2f731c392beca (diff) | |
download | pkgsrc-777198bce72633ab6cc27fec629b7befa10026f8.tar.gz |
Fix warnings to build with default clang flags.
Diffstat (limited to 'benchmarks/glmark2/patches/patch-src_scene-refract.cpp')
-rw-r--r-- | benchmarks/glmark2/patches/patch-src_scene-refract.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/benchmarks/glmark2/patches/patch-src_scene-refract.cpp b/benchmarks/glmark2/patches/patch-src_scene-refract.cpp new file mode 100644 index 00000000000..6dade9b390c --- /dev/null +++ b/benchmarks/glmark2/patches/patch-src_scene-refract.cpp @@ -0,0 +1,17 @@ +$NetBSD: patch-src_scene-refract.cpp,v 1.1 2015/03/08 23:25:39 joerg Exp $ + +--- src/scene-refract.cpp.orig 2015-03-05 11:02:14.000000000 +0000 ++++ src/scene-refract.cpp +@@ -245,10 +245,8 @@ DistanceRenderTarget::teardown() + { + program_.stop(); + program_.release(); +- if (tex_) { +- glDeleteTextures(2, &tex_[0]); +- tex_[DEPTH] = tex_[COLOR] = 0; +- } ++ glDeleteTextures(2, &tex_[0]); ++ tex_[DEPTH] = tex_[COLOR] = 0; + if (fbo_) { + glDeleteFramebuffers(1, &fbo_); + fbo_ = 0; |