From 42eca164cb361b606ef5eb0ba2d5fd9f19617310 Mon Sep 17 00:00:00 2001 From: zeromus Date: Wed, 29 Jan 2014 02:17:34 +0000 Subject: [PATCH] remove useless glGetError calls --- Bizware/BizHawk.Bizware.BizwareGL.OpenTK/IGL_TK.cs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/Bizware/BizHawk.Bizware.BizwareGL.OpenTK/IGL_TK.cs b/Bizware/BizHawk.Bizware.BizwareGL.OpenTK/IGL_TK.cs index 5dceced690..cf8d341218 100644 --- a/Bizware/BizHawk.Bizware.BizwareGL.OpenTK/IGL_TK.cs +++ b/Bizware/BizHawk.Bizware.BizwareGL.OpenTK/IGL_TK.cs @@ -425,9 +425,7 @@ namespace BizHawk.Bizware.BizwareGL.Drivers.OpenTK void IGL.SetViewport(swf.Control control) { - ErrorCode errcode; var r = control.ClientRectangle; - errcode = GL.GetError(); GL.Viewport(r.Left, r.Top, r.Width, r.Height); } @@ -490,8 +488,6 @@ namespace BizHawk.Bizware.BizwareGL.Drivers.OpenTK unsafe void MyBindArrayData(VertexLayout layout, void* pData) { - ErrorCode errcode; - UnbindVertexAttributes(); //HAMNUTS (continued) @@ -501,9 +497,7 @@ namespace BizHawk.Bizware.BizwareGL.Drivers.OpenTK foreach (var kvp in layout.Items) { GL.VertexAttribPointer(kvp.Key, kvp.Value.Components, (VertexAttribPointerType)kvp.Value.AttribType, kvp.Value.Normalized, kvp.Value.Stride, new IntPtr(pData) + kvp.Value.Offset); - errcode = GL.GetError(); GL.EnableVertexAttribArray(kvp.Key); - errcode = GL.GetError(); currBindings.Add(kvp.Key); } }