summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/headless_view.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/headless_view.cpp b/common/headless_view.cpp
index 51196faede..c482bbd8b3 100644
--- a/common/headless_view.cpp
+++ b/common/headless_view.cpp
@@ -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);