X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fcore%2Fdepthtest.h;h=e6f1349a7816ff20594cfb22a4c1017a93d1f193;hp=d79f06e8d292f4bc39660dd03016dd9d9d0d6694;hb=38712d8ecc57d043a2419ffbaeeb57f7a6586f14;hpb=2b2676392aff2eb6b38c3e463cc67f4d67a4ef8b diff --git a/source/core/depthtest.h b/source/core/depthtest.h index d79f06e8..e6f1349a 100644 --- a/source/core/depthtest.h +++ b/source/core/depthtest.h @@ -22,11 +22,11 @@ struct DepthTest void compare(Predicate); }; - bool enabled; - Predicate compare; - bool write; + bool enabled = false; + Predicate compare = LESS; + bool write = true; - DepthTest(); + DepthTest() = default; DepthTest(Predicate, bool = true); };