Unbreak drawing of DEPTH_ONLY meshes via OpenGL 2 batch canvas.

single-window
EvilSpirit 2016-11-19 15:16:41 +07:00 committed by whitequark
parent 61f248899a
commit 01ae452507
1 changed files with 1 additions and 1 deletions

View File

@ -852,8 +852,8 @@ struct CompareDrawCall {
bool operator()(const std::shared_ptr<DrawCall> &a, const std::shared_ptr<DrawCall> &b) { bool operator()(const std::shared_ptr<DrawCall> &a, const std::shared_ptr<DrawCall> &b) {
const Canvas::Layer stackup[] = { const Canvas::Layer stackup[] = {
Canvas::Layer::BACK, Canvas::Layer::BACK,
Canvas::Layer::NORMAL,
Canvas::Layer::DEPTH_ONLY, Canvas::Layer::DEPTH_ONLY,
Canvas::Layer::NORMAL,
Canvas::Layer::OCCLUDED, Canvas::Layer::OCCLUDED,
Canvas::Layer::FRONT Canvas::Layer::FRONT
}; };