Cleanup: move trailing comments to avoid wrapping code

Some statements were split across multiple lines because of their
trailing comments.

In most cases it's clearer to put the comments above.
This commit is contained in:
2019-08-14 23:29:46 +10:00
parent bc4fe45aef
commit 03b2371387
72 changed files with 311 additions and 239 deletions

View File

@@ -163,8 +163,10 @@ uint GPU_vertformat_attr_add(GPUVertFormat *format,
/* 10_10_10 format intended for normals (xyz) or colors (rgb)
* extra component packed.w can be manually set to { -2, -1, 0, 1 } */
assert(comp_len == 3 || comp_len == 4);
assert(fetch_mode ==
GPU_FETCH_INT_TO_FLOAT_UNIT); /* not strictly required, may relax later */
/* Not strictly required, may relax later. */
assert(fetch_mode == GPU_FETCH_INT_TO_FLOAT_UNIT);
break;
default:
/* integer types can be kept as int or converted/normalized to float */