]> git.tdb.fi Git - libs/gl.git/commitdiff
Explicitly specify enum values which are relied upon
authorMikko Rasa <tdb@tdb.fi>
Fri, 29 Oct 2021 09:49:10 +0000 (12:49 +0300)
committerMikko Rasa <tdb@tdb.fi>
Fri, 29 Oct 2021 09:54:20 +0000 (12:54 +0300)
source/render/zsortedscene.h

index 6806547235962793fc976d7613d28e49ed516708..f268f5297e3b279e064173c71f938494ade5431a 100644 (file)
@@ -10,15 +10,15 @@ namespace GL {
 
 enum SortOrder
 {
-       FRONT_TO_BACK,
-       BACK_TO_FRONT
+       FRONT_TO_BACK = 0,
+       BACK_TO_FRONT = 1
 };
 
 enum DepthReference
 {
-       CLOSEST,
-       CENTER,
-       FURTHEST
+       CLOSEST = 0,
+       CENTER = 1,
+       FURTHEST = 2
 };
 
 /**