nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lib/core/stream: LineIterator use CachedIterator
[nit.git]
/
lib
/
gamnit
/
display_linux.nit
diff --git
a/lib/gamnit/display_linux.nit
b/lib/gamnit/display_linux.nit
index
dcfd963
..
f678bbe
100644
(file)
--- a/
lib/gamnit/display_linux.nit
+++ b/
lib/gamnit/display_linux.nit
@@
-50,7
+50,7
@@
redef class GamnitDisplay
setup_egl_display sdl_window.wm_info.display_handle
if debug_gamnit then print "Setting up EGL context"
setup_egl_display sdl_window.wm_info.display_handle
if debug_gamnit then print "Setting up EGL context"
- select_egl_config(red_bits, green_bits, blue_bits, 8, 8, 0, 0)
+ select_egl_config(red_bits, green_bits, blue_bits, 8, 8, 0)
setup_egl_context sdl_window.wm_info.window_handle
end
setup_egl_context sdl_window.wm_info.window_handle
end
@@
-139,5
+139,7
@@
redef class TextureAsset
var pixels = surface.pixels
load_from_pixels(pixels, surface.w, surface.h, format)
var pixels = surface.pixels
load_from_pixels(pixels, surface.w, surface.h, format)
+
+ surface.free
end
end
end
end