From b75e299b4fd662ad3e5e403fe791c763056428ce Mon Sep 17 00:00:00 2001 From: Henrik Rydgard Date: Sun, 19 Feb 2017 13:11:35 +0100 Subject: [PATCH] Linux buildfix --- ext/native/gfx_es2/draw_text.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/native/gfx_es2/draw_text.cpp b/ext/native/gfx_es2/draw_text.cpp index 54e67246bd..040047bbe8 100644 --- a/ext/native/gfx_es2/draw_text.cpp +++ b/ext/native/gfx_es2/draw_text.cpp @@ -488,7 +488,7 @@ void TextDrawer::DrawString(DrawBuffer &target, const char *str, float x, float bitmapData[entry->bmWidth * y + x] = 0xfff0 | image.pixel(x, y) >> 28; } } - desc.initData.push_back(bitmapData); + desc.initData.push_back((uint8_t *)bitmapData); entry->texture = draw_->CreateTexture(desc); delete [] bitmapData; cache_[entryHash] = std::unique_ptr(entry);