From 14d815dc8b42d9b05dd5ed8405fdb6f6cd6271b9 Mon Sep 17 00:00:00 2001 From: Stefanos A Date: Sun, 15 Dec 2013 22:02:32 +0100 Subject: [PATCH] Fixed deprecation warning --- Source/OpenTK/Graphics/ES20/Helper.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/OpenTK/Graphics/ES20/Helper.cs b/Source/OpenTK/Graphics/ES20/Helper.cs index 8c6af40e..99076893 100644 --- a/Source/OpenTK/Graphics/ES20/Helper.cs +++ b/Source/OpenTK/Graphics/ES20/Helper.cs @@ -373,7 +373,7 @@ namespace OpenTK.Graphics.ES20 public static void DrawElements(BeginMode mode, int count, DrawElementsType type, int offset) { - DrawElements(mode, count, type, new IntPtr(offset)); + DrawElements((PrimitiveType)mode, count, type, new IntPtr(offset)); } #endregion