fix errors that prevented compilation/running
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#include "headless_display.hpp"
|
||||
|
||||
#include <cstring>
|
||||
#include <stdexcept>
|
||||
|
||||
namespace mbgl {
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user