gamnit: fix subtexture references to the parent's GL name
authorAlexis Laferrière <alexis.laf@xymus.net>
Wed, 18 Oct 2017 19:37:39 +0000 (15:37 -0400)
committerAlexis Laferrière <alexis.laf@xymus.net>
Tue, 21 Nov 2017 19:41:17 +0000 (14:41 -0500)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

lib/gamnit/textures.nit

index 2aa405d..a537611 100644 (file)
@@ -338,7 +338,7 @@ abstract class Subtexture
        # Parent texture, from which this texture was created
        var parent: Texture
 
-       redef var root = parent.root is lateinit
+       redef fun root do return parent.root
 
        redef fun load(force) do root.load(force)
 end
@@ -392,7 +392,7 @@ class TextureSet
 end
 
 redef class Pointer
-       # Multiply RBG values by their alpha value
+       # Multiply RGB values by their alpha value
        private fun premultiply_alpha(width, height: Int) `{
                uint8_t *bytes = (uint8_t *)self;
                int x, y, i = 0;