From c0f37bc1217ebdd533c2ff2184e75dd1304589ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Wed, 24 May 2017 21:15:08 -0700 Subject: [PATCH] Fixed #1136 premultiplied alpha. --- examples/common/nanovg/nanovg_bgfx.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/common/nanovg/nanovg_bgfx.cpp b/examples/common/nanovg/nanovg_bgfx.cpp index 3e5053d6d..99c809b05 100644 --- a/examples/common/nanovg/nanovg_bgfx.cpp +++ b/examples/common/nanovg/nanovg_bgfx.cpp @@ -1216,7 +1216,7 @@ NVGLUframebuffer* nvgluCreateFramebuffer(NVGcontext* _ctx, int _width, int _heig tex->width = _width; tex->height = _height; tex->type = NVG_TEXTURE_RGBA; - tex->flags = _imageFlags; + tex->flags = _imageFlags | NVG_IMAGE_PREMULTIPLIED; tex->id = bgfx::getTexture(fbh); NVGLUframebuffer* framebuffer = BX_NEW(gl->m_allocator, NVGLUframebuffer);