Blender Git Loki

Git Commits -> Revision d7b3e33

Revision d7b3e33 by Dalai Felinto (master)
August 22, 2017, 12:37 (GMT)
GL_TEXTURE_2D_ARRAY wasn't handled in GPU_texture_update

Although the problem was exposed in 9457715d9a6f, the problem was in the
original code that was copied over. To have:

```
} else { /* EXPECTED_VALUE */
```

Without an BLI_assert(value == EXPECTED_VALUE); is asking for troubles.
Yet another reason to favour switch statements with:

```
default:
BLI_assert(!"value not implemented or supported");
```

Instead of chained if/else if/else /* expected_value */.

Commit Details:

Full Hash: d7b3e33af43fa5a42e87689b441e6aa08e544754
Parent Commit: 5f4066c
Lines Changed: +1, -0

1 Modified Path:

/source/blender/gpu/intern/gpu_texture.c (+1, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021