Updated deprecation message with specific instructions on how to solve the issue.

This commit is contained in:
the_fiddler 2009-11-04 20:47:06 +00:00
parent 40235d84ca
commit 3e1e9dfdca

View file

@ -388,7 +388,7 @@ namespace OpenTK
/// <exception cref="OpenTK.Graphics.GraphicsContextException"> /// <exception cref="OpenTK.Graphics.GraphicsContextException">
/// Occurs when no OpenTK.Graphics.GraphicsContext is current in the calling thread. /// Occurs when no OpenTK.Graphics.GraphicsContext is current in the calling thread.
/// </exception> /// </exception>
[Obsolete("This method will not work correctly with OpenGL|ES. Please use ReadPixels to capture the contents of the framebuffer (you can then load them into a System.Drawing.Bitmap for further processing or saving them to disk).")] [Obsolete("This method will not work correctly with OpenGL|ES. Please use GL.ReadPixels to capture the contents of the framebuffer (refer to http://www.opentk.com/doc/graphics/save-opengl-rendering-to-disk for more information).")]
public Bitmap GrabScreenshot() public Bitmap GrabScreenshot()
{ {
ValidateState(); ValidateState();