mirror of https://github.com/bkaradzic/bgfx
Cleanup.
This commit is contained in:
parent
2c861766e8
commit
a488207c81
|
@ -250,14 +250,11 @@ static void nvg__setDevicePixelRatio(NVGcontext* ctx, float ratio)
|
|||
|
||||
static NVGcompositeOperationState nvg__compositeOperationState(int op)
|
||||
{
|
||||
int sfactor, dfactor;
|
||||
// NVG_SOURCE_OVER
|
||||
int sfactor = NVG_ONE;
|
||||
int dfactor = NVG_ONE_MINUS_SRC_ALPHA;
|
||||
|
||||
if (op == NVG_SOURCE_OVER)
|
||||
{
|
||||
sfactor = NVG_ONE;
|
||||
dfactor = NVG_ONE_MINUS_SRC_ALPHA;
|
||||
}
|
||||
else if (op == NVG_SOURCE_IN)
|
||||
if (op == NVG_SOURCE_IN)
|
||||
{
|
||||
sfactor = NVG_DST_ALPHA;
|
||||
dfactor = NVG_ZERO;
|
||||
|
|
Loading…
Reference in New Issue