mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 21:01:52 +00:00
Reference counting fixes
This commit is contained in:
@@ -10,7 +10,7 @@ namespace GlitchyEngine.Renderer
|
||||
{
|
||||
internal this(ConstantBuffer constantBuffer, ID3D11ShaderReflectionVariable* variableReflection)
|
||||
{
|
||||
_constantBuffer = constantBuffer..AddRef();
|
||||
_constantBuffer = constantBuffer;
|
||||
|
||||
HResult result = variableReflection.GetDescription(let variableDescription);
|
||||
Log.EngineLogger.Assert(result.Succeeded, scope $"Failed to get variable description. Error({(int)result}): {result}");
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace GlitchyEngine.Renderer
|
||||
{
|
||||
nativeShaderCode = vertexShader.nativeCode..AddRef();
|
||||
|
||||
_context = context;
|
||||
_context = context..AddRef();
|
||||
_elements = ownElements;
|
||||
|
||||
CreateNativeLayout();
|
||||
|
||||
Reference in New Issue
Block a user