Tidy up HeadlessView

This commit is contained in:
Leith Bade
2014-12-09 03:41:05 +11:00
parent 318ef5d443
commit d2792e2987
5 changed files with 110 additions and 96 deletions

View File

@@ -15,8 +15,8 @@ public:
#endif
#if MBGL_USE_GLX
Display *x_display = nullptr;
GLXFBConfig *fb_configs = nullptr;
Display *xDisplay = nullptr;
GLXFBConfig *fbConfigs = nullptr;
#endif
};

View File

@@ -46,19 +46,19 @@ private:
float pixelRatio_;
#if MBGL_USE_CGL
CGLContextObj gl_context;
CGLContextObj glContext;
#endif
#if MBGL_USE_GLX
Display *x_display = nullptr;
GLXFBConfig *fb_configs = nullptr;
GLXContext gl_context = 0;
GLXPbuffer glx_pbuffer = 0;
Display *xDisplay = nullptr;
GLXFBConfig *fbConfigs = nullptr;
GLXContext glContext = 0;
GLXPbuffer glxPbuffer = 0;
#endif
GLuint fbo = 0;
GLuint fbo_depth_stencil = 0;
GLuint fbo_color = 0;
GLuint fboDepthStencil = 0;
GLuint fboColor = 0;
};
}