diff options
author | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2018-05-14 19:38:32 +0000 |
---|---|---|
committer | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2018-05-14 19:38:32 +0000 |
commit | 3720dfe89bd8d52b5a90f3cd601dc51a728a4bf7 (patch) | |
tree | 497144e43ead3a280594c5f32039bbfce83aef22 /graphics/glosm/files/patch-tiler_PBuffer.cc | |
parent | - Fix build with clang 6.0 (diff) |
- Add LICENSE
- Add missing dependency
- Fix build with clang 6.0
Notes
Notes:
svn path=/head/; revision=469961
Diffstat (limited to 'graphics/glosm/files/patch-tiler_PBuffer.cc')
-rw-r--r-- | graphics/glosm/files/patch-tiler_PBuffer.cc | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/graphics/glosm/files/patch-tiler_PBuffer.cc b/graphics/glosm/files/patch-tiler_PBuffer.cc new file mode 100644 index 000000000000..4142ed5ab080 --- /dev/null +++ b/graphics/glosm/files/patch-tiler_PBuffer.cc @@ -0,0 +1,20 @@ +--- tiler/PBuffer.cc.orig 2011-02-27 15:05:45 UTC ++++ tiler/PBuffer.cc +@@ -38,7 +38,7 @@ static bool CheckGLXVersion(Display* dis + return true; + } + +-PBuffer::PBuffer(int width, int height, int samples) : width_(width), height_(height), display_(NULL), context_(NULL), pbuffer_(NULL) { ++PBuffer::PBuffer(int width, int height, int samples) : width_(width), height_(height), display_(NULL), context_(NULL), pbuffer_(None) { + if ((display_ = XOpenDisplay(NULL)) == NULL) + throw PBufferException() << "cannot open default X display"; + +@@ -113,7 +113,7 @@ PBuffer::PBuffer(int width, int height, + } + + PBuffer::~PBuffer() { +- if (!glXMakeCurrent(display_, NULL, NULL)) ++ if (!glXMakeCurrent(display_, None, NULL)) + warnx("cannot reset GLX context: glXMakeCurrent failed"); + glXDestroyContext(display_, context_); + glXDestroyPbuffer(display_, pbuffer_); |