Skip to content

Commit 1122add

Browse files
committed
Minor format tweak
1 parent 92f82b4 commit 1122add

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

src/external/rlsw.h

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2357,7 +2357,8 @@ static inline bool sw_texture_alloc(sw_texture_t *texture, const void *data, int
23572357

23582358
sw_pixel_read_color8_f readColor8 = NULL;
23592359
sw_pixel_read_color_f readColor = NULL;
2360-
if (!isDepth) {
2360+
if (!isDepth)
2361+
{
23612362
readColor8 = sw_pixel_get_read_color8_func(format);
23622363
readColor = sw_pixel_get_read_color_func(format);
23632364
}
@@ -2803,7 +2804,8 @@ static const sw_blend_f SW_BLEND_TABLE[SW_BLEND_FACTOR_COUNT][SW_BLEND_FACTOR_CO
28032804
// Maps a GL blend factor enum to its compact table index
28042805
static inline int sw_blend_factor_index(SWfactor f)
28052806
{
2806-
switch (f) {
2807+
switch (f)
2808+
{
28072809
case SW_ZERO: return 0;
28082810
case SW_ONE: return 1;
28092811
case SW_SRC_COLOR: return 2;
@@ -2821,14 +2823,16 @@ static inline int sw_blend_factor_index(SWfactor f)
28212823

28222824
static bool sw_blend_factor_needs_alpha(SWfactor f)
28232825
{
2824-
switch (f) {
2826+
switch (f)
2827+
{
28252828
case SW_SRC_ALPHA:
28262829
case SW_ONE_MINUS_SRC_ALPHA:
28272830
case SW_DST_ALPHA:
28282831
case SW_ONE_MINUS_DST_ALPHA:
28292832
case SW_SRC_ALPHA_SATURATE: return true;
28302833
default: break;
28312834
}
2835+
28322836
return false;
28332837
}
28342838

0 commit comments

Comments
 (0)