aboutsummaryrefslogtreecommitdiff
path: root/graphics/glosm/files/patch-tiler_PBuffer.cc
blob: 4142ed5ab080d3c1372ed0a767db586c73dcad25 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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_);