cast to correct int type

This commit is contained in:
Konstantin Käfer
2014-10-15 14:31:19 +00:00
parent 8eda68dd8a
commit 5f40d27256

View File

@@ -114,8 +114,8 @@ void HeadlessView::resize(uint16_t width, uint16_t height, float pixelRatio) {
#if MBGL_USE_GLX
int attributes[] = {
GLX_PBUFFER_WIDTH, w,
GLX_PBUFFER_HEIGHT, h,
GLX_PBUFFER_WIDTH, static_cast<int>(w),
GLX_PBUFFER_HEIGHT, static_cast<int>(h),
None
};
glx_pbuffer = glXCreatePbuffer(x_display, fb_configs[0], attributes);