[core] set correct depth values for CustomLayer so compositing works

This commit is contained in:
Konstantin Käfer
2016-08-22 15:54:40 +02:00
parent bf1c7a47b5
commit e6bcbdd5d3
5 changed files with 41 additions and 11 deletions

View File

@@ -33,6 +33,8 @@ struct CustomLayerRenderParameters {
* any assumptions about the GL state (other than that the correct context is active). It may
* make changes to the state, and is not required to reset values such as the depth mask, stencil
* mask, and corresponding test flags to their original values.
* Make sure that you are drawing your fragments with a z value of 1 to take advantage of the
* opaque fragment culling in case there are opaque layers above your custom layer.
*/
using CustomLayerRenderFunction = void (*)(void* context, const CustomLayerRenderParameters&);