From 799b3213753ea6d1545e7a01168d3445654c62a0 Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Fri, 14 Jan 2011 10:28:37 +0000 Subject: [PATCH] * EglGraphicsMode.cs: Removed unused Egl.GetConfigs call. --- Source/OpenTK/Platform/Egl/EglGraphicsMode.cs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Source/OpenTK/Platform/Egl/EglGraphicsMode.cs b/Source/OpenTK/Platform/Egl/EglGraphicsMode.cs index d14aee8c..3bd29603 100644 --- a/Source/OpenTK/Platform/Egl/EglGraphicsMode.cs +++ b/Source/OpenTK/Platform/Egl/EglGraphicsMode.cs @@ -72,12 +72,7 @@ namespace OpenTK.Platform.Egl throw new GraphicsModeException(String.Format("Failed to initialize display connection, error {0}", Egl.GetError())); int num_configs; - if (!Egl.GetConfigs(display, null, 0, out num_configs)) - { - throw new GraphicsModeException(String.Format("Failed to retrieve GraphicsMode configurations, error {0}", Egl.GetError())); - } - - if (!Egl.ChooseConfig(display, attribList, configs, configs.Length, out num_configs)) + if (!Egl.ChooseConfig(display, attribList, configs, configs.Length, out num_configs) || num_configs == 0) { throw new GraphicsModeException(String.Format("Failed to retrieve GraphicsMode, error {0}", Egl.GetError())); }