From 2ea264927129db003330c74a3919a3d14f4e5746 Mon Sep 17 00:00:00 2001 From: zeromus Date: Mon, 3 Feb 2014 08:11:13 +0000 Subject: [PATCH] little fix to the previous --- Bizware/BizHawk.Bizware.BizwareGL.OpenTK/IGL_TK.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Bizware/BizHawk.Bizware.BizwareGL.OpenTK/IGL_TK.cs b/Bizware/BizHawk.Bizware.BizwareGL.OpenTK/IGL_TK.cs index 8fa5b736fc..277ee54604 100644 --- a/Bizware/BizHawk.Bizware.BizwareGL.OpenTK/IGL_TK.cs +++ b/Bizware/BizHawk.Bizware.BizwareGL.OpenTK/IGL_TK.cs @@ -379,9 +379,9 @@ namespace BizHawk.Bizware.BizwareGL.Drivers.OpenTK GL.Ext.FramebufferTexture2D(FramebufferTarget.Framebuffer, FramebufferAttachment.ColorAttachment0, TextureTarget.Texture2D, texid.ToInt32(), 0); //do something, I guess say which colorbuffers are used by the framebuffer - //DrawBuffersEnum* buffers = stackalloc DrawBuffersEnum[1]; - //buffers[0] = DrawBuffersEnum.ColorAttachment0; - GL.Ext.FramebufferDrawBuffer(0, DrawBufferMode.ColorAttachment0); + DrawBuffersEnum* buffers = stackalloc DrawBuffersEnum[1]; + buffers[0] = DrawBuffersEnum.ColorAttachment0; + GL.DrawBuffers(1, buffers); if (GL.Ext.CheckFramebufferStatus(FramebufferTarget.Framebuffer) != FramebufferErrorCode.FramebufferComplete) throw new InvalidOperationException("Error creating framebuffer (at CheckFramebufferStatus)");