fix errors that prevented compilation/running

This commit is contained in:
Konstantin Käfer
2014-10-15 14:20:28 +00:00
parent 9ff1d9e3bd
commit 8eda68dd8a
3 changed files with 4 additions and 3 deletions

View File

@@ -1,5 +1,6 @@
#include "headless_display.hpp"
#include <cstring>
#include <stdexcept>
namespace mbgl {

View File

@@ -118,7 +118,7 @@ void HeadlessView::resize(uint16_t width, uint16_t height, float pixelRatio) {
GLX_PBUFFER_HEIGHT, h,
None
};
GLXPbuffer pbuffer = glXCreatePbuffer(x_display, fg_configs[0], attributes);
glx_pbuffer = glXCreatePbuffer(x_display, fb_configs[0], attributes);
#endif
}

View File

@@ -4,7 +4,7 @@
#ifdef __APPLE__
#define MBGL_USE_CGL 1
#else
#include "glx.h"
#include <GL/glx.h>
#define MBGL_USE_GLX 1
#endif
@@ -55,7 +55,7 @@ private:
Display *x_display = nullptr;
GLXFBConfig *fb_configs = nullptr;
GLXContext gl_context = nullptr;
GLXPBuffer glx_pbuffer = 0;
GLXPbuffer glx_pbuffer = 0;
#endif
};