mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-28 18:45:54 -05:00
Fixed compile warning.
This commit is contained in:
parent
d5bea0e7fd
commit
76b317256e
1 changed files with 4 additions and 4 deletions
|
@ -64,10 +64,10 @@ struct OcornutImguiContext
|
||||||
| BGFX_STATE_BLEND_FUNC(BGFX_STATE_BLEND_SRC_ALPHA, BGFX_STATE_BLEND_INV_SRC_ALPHA)
|
| BGFX_STATE_BLEND_FUNC(BGFX_STATE_BLEND_SRC_ALPHA, BGFX_STATE_BLEND_INV_SRC_ALPHA)
|
||||||
| BGFX_STATE_MSAA
|
| BGFX_STATE_MSAA
|
||||||
);
|
);
|
||||||
bgfx::setScissor(pcmd->clip_rect.x
|
bgfx::setScissor(uint16_t(pcmd->clip_rect.x)
|
||||||
, pcmd->clip_rect.y
|
, uint16_t(pcmd->clip_rect.y)
|
||||||
, pcmd->clip_rect.z-pcmd->clip_rect.x
|
, uint16_t(pcmd->clip_rect.z-pcmd->clip_rect.x)
|
||||||
, pcmd->clip_rect.w-pcmd->clip_rect.y
|
, uint16_t(pcmd->clip_rect.w-pcmd->clip_rect.y)
|
||||||
);
|
);
|
||||||
bgfx::setTexture(0, s_tex, m_texture);
|
bgfx::setTexture(0, s_tex, m_texture);
|
||||||
bgfx::setVertexBuffer(&tvb, vtx_offset, pcmd->vtx_count);
|
bgfx::setVertexBuffer(&tvb, vtx_offset, pcmd->vtx_count);
|
||||||
|
|
Loading…
Reference in a new issue