mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-23 20:15:31 +00:00
23 lines
723 B
C#
23 lines
723 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace OpenTK.Graphics
|
|
{
|
|
/// <summary>
|
|
/// Thrown when an operation that required GraphicsContext is performed, when no
|
|
/// GraphicsContext is current in the calling thread.
|
|
/// </summary>
|
|
public class GraphicsContextMissingException : GraphicsContextException
|
|
{
|
|
/// <summary>
|
|
/// Constructs a new GraphicsContextMissingException.
|
|
/// </summary>
|
|
public GraphicsContextMissingException()
|
|
: base(String.Format(
|
|
"No context is current in the calling thread (ThreadId: {0}).",
|
|
System.Threading.Thread.CurrentThread.ManagedThreadId))
|
|
{ }
|
|
}
|
|
}
|