nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a3c3fc3
)
gamnit: fix subtexture references to the parent's GL name
author
Alexis Laferrière
<alexis.laf@xymus.net>
Wed, 18 Oct 2017 19:37:39 +0000
(15:37 -0400)
committer
Alexis 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
patch
|
blob
|
history
diff --git
a/lib/gamnit/textures.nit
b/lib/gamnit/textures.nit
index
2aa405d
..
a537611
100644
(file)
--- a/
lib/gamnit/textures.nit
+++ b/
lib/gamnit/textures.nit
@@
-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;