From 430727ee72cfccf30b5747f0e0e8233c960d7d73 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alexis=20Laferri=C3=A8re?= Date: Sun, 7 Feb 2016 13:37:55 -0500 Subject: [PATCH] lib/gamnit: fix order on the color bits count MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Alexis Laferrière --- lib/gamnit/egl.nit | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/gamnit/egl.nit b/lib/gamnit/egl.nit index 3fcb8c8..b451362 100644 --- a/lib/gamnit/egl.nit +++ b/lib/gamnit/egl.nit @@ -46,14 +46,14 @@ redef class GamnitDisplay end # Select an EGL config - protected fun select_egl_config(blue, green, red, alpha, depth, stencil, sample: Int) + protected fun select_egl_config(red, green, blue, alpha, depth, stencil, sample: Int) do var config_chooser = new EGLConfigChooser config_chooser.renderable_type_egl config_chooser.surface_type_egl - config_chooser.blue_size = blue - config_chooser.green_size = green config_chooser.red_size = red + config_chooser.green_size = green + config_chooser.blue_size = blue if alpha > 0 then config_chooser.alpha_size = alpha if depth > 0 then config_chooser.depth_size = depth if stencil > 0 then config_chooser.stencil_size = stencil -- 1.7.9.5