Skip to content

Commit

Permalink
Update few comments for 2x src/dst blending
Browse files Browse the repository at this point in the history
  • Loading branch information
raven02 committed Mar 28, 2014
1 parent c53b8ed commit e0fae72
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions GPU/GLES/StateMapping.cpp
Expand Up @@ -42,11 +42,11 @@ static const GLushort aLookup[11] = {
GL_ONE_MINUS_SRC_ALPHA,
GL_DST_ALPHA,
GL_ONE_MINUS_DST_ALPHA,
GL_SRC_ALPHA, // should be 2x
GL_ONE_MINUS_SRC_ALPHA, // should be 2x
GL_DST_ALPHA, // should be 2x
GL_ONE_MINUS_DST_ALPHA, // should be 2x - and COLOR?
GL_CONSTANT_COLOR, // FIXA
GL_SRC_ALPHA, // GE_SRCBLEND_DOUBLESRCALPHA
GL_ONE_MINUS_SRC_ALPHA, // GE_SRCBLEND_DOUBLEINVSRCALPHA
GL_DST_ALPHA, // GE_SRCBLEND_DOUBLEDSTALPHA
GL_ONE_MINUS_DST_ALPHA, // GE_SRCBLEND_DOUBLEINVDSTALPHA
GL_CONSTANT_COLOR, // FIXA
};

static const GLushort bLookup[11] = {
Expand All @@ -56,34 +56,34 @@ static const GLushort bLookup[11] = {
GL_ONE_MINUS_SRC_ALPHA,
GL_DST_ALPHA,
GL_ONE_MINUS_DST_ALPHA,
GL_SRC_ALPHA, // should be 2x
GL_ONE_MINUS_SRC_ALPHA, // should be 2x
GL_DST_ALPHA, // should be 2x
GL_ONE_MINUS_DST_ALPHA, // should be 2x
GL_CONSTANT_COLOR, // FIXB
GL_SRC_ALPHA, // GE_DSTBLEND_DOUBLESRCALPHA
GL_ONE_MINUS_SRC_ALPHA, // GE_DSTBLEND_DOUBLEINVSRCALPHA
GL_DST_ALPHA, // GE_DSTBLEND_DOUBLEDSTALPHA
GL_ONE_MINUS_DST_ALPHA, // GE_DSTBLEND_DOUBLEINVDSTALPHA
GL_CONSTANT_COLOR, // FIXB
};

static const GLushort eqLookupNoMinMax[] = {
GL_FUNC_ADD,
GL_FUNC_SUBTRACT,
GL_FUNC_REVERSE_SUBTRACT,
GL_FUNC_ADD, // GL_MIN
GL_FUNC_ADD, // GL_MAX
GL_FUNC_ADD, // GE_BLENDMODE_ABSDIFF
GL_FUNC_ADD, // GE_BLENDMODE_MIN
GL_FUNC_ADD, // GE_BLENDMODE_MAX
GL_FUNC_ADD, // GE_BLENDMODE_ABSDIFF
};

static const GLushort eqLookup[] = {
GL_FUNC_ADD,
GL_FUNC_SUBTRACT,
GL_FUNC_REVERSE_SUBTRACT,
#ifdef USING_GLES2
GL_MIN_EXT,
GL_MAX_EXT,
GL_MAX_EXT, // this is GE_BLENDMODE_ABSDIFF
GL_MIN_EXT, // GE_BLENDMODE_MIN
GL_MAX_EXT, // GE_BLENDMODE_MAX
GL_MAX_EXT, // GE_BLENDMODE_ABSDIFF
#else
GL_MIN,
GL_MAX,
GL_MAX, // this is GE_BLENDMODE_ABSDIFF
GL_MIN, // GE_BLENDMODE_MIN
GL_MAX, // GE_BLENDMODE_MAX
GL_MAX, // GE_BLENDMODE_ABSDIFF
#endif
};

Expand Down

0 comments on commit e0fae72

Please sign in to comment.