mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 21:01:52 +00:00
Use static D3D11 device and context
This commit is contained in:
@@ -35,8 +35,6 @@ namespace GlitchyEngine.Renderer
|
||||
|
||||
public class RenderTarget2D : RefCounter
|
||||
{
|
||||
internal GraphicsContext _context;
|
||||
|
||||
private RenderTarget2DDescription _description;
|
||||
|
||||
public RenderTarget2DDescription Description => _description;
|
||||
@@ -63,9 +61,8 @@ namespace GlitchyEngine.Renderer
|
||||
}
|
||||
}
|
||||
|
||||
public this(GraphicsContext context, RenderTarget2DDescription description)
|
||||
public this(RenderTarget2DDescription description)
|
||||
{
|
||||
_context = context;
|
||||
_description = description;
|
||||
|
||||
ApplyChanges();
|
||||
|
||||
Reference in New Issue
Block a user