From 33e90d1b973789e441207b786c846be1e3dba8ab Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Mon, 17 Aug 2009 09:56:43 +0000 Subject: [PATCH] Manually check for OpenGL extension support. Removed TextPrinter reference. --- Source/Examples/OpenGL/EXT/FramebufferObject.cs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Source/Examples/OpenGL/EXT/FramebufferObject.cs b/Source/Examples/OpenGL/EXT/FramebufferObject.cs index b7916122..9217070c 100644 --- a/Source/Examples/OpenGL/EXT/FramebufferObject.cs +++ b/Source/Examples/OpenGL/EXT/FramebufferObject.cs @@ -26,7 +26,6 @@ namespace Examples.Tutorial } Font sans = new Font(System.Drawing.FontFamily.GenericSansSerif, 16.0f); - ITextPrinter text = new TextPrinter(); uint ColorTexture; uint DepthTexture; @@ -55,7 +54,7 @@ namespace Examples.Tutorial public override void OnLoad(EventArgs e) { - if (!GL.SupportsExtension("EXT_framebuffer_object")) + if (!GL.GetString(StringName.Extensions).Contains("EXT_framebuffer_object")) { System.Windows.Forms.MessageBox.Show( "Your video card does not support Framebuffer Objects. Please update your drivers.", @@ -244,10 +243,6 @@ namespace Examples.Tutorial { GL.Clear(ClearBufferMask.ColorBufferBit | ClearBufferMask.DepthBufferBit); - text.Begin(); - text.Print((1.0 / e.Time).ToString("F2"), sans, Color.White); - text.End(); - GL.PushMatrix(); { // Draw the Color Texture