Fixed #1136 premultiplied alpha.

This commit is contained in:
Branimir Karadžić 2017-05-24 21:15:08 -07:00
parent c8abb371c9
commit c0f37bc121
1 changed files with 1 additions and 1 deletions

View File

@ -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);