mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-06 13:58:40 +00:00
fix releasing of nil gpu buffer handles
This commit is contained in:
@@ -801,7 +801,10 @@ r_buffer_release(R_Handle handle)
|
|||||||
MutexScopeW(r_d3d11_state->device_rw_mutex)
|
MutexScopeW(r_d3d11_state->device_rw_mutex)
|
||||||
{
|
{
|
||||||
R_D3D11_Buffer *buffer = r_d3d11_buffer_from_handle(handle);
|
R_D3D11_Buffer *buffer = r_d3d11_buffer_from_handle(handle);
|
||||||
SLLStackPush(r_d3d11_state->first_to_free_buffer, buffer);
|
if(buffer != &r_d3d11_buffer_nil)
|
||||||
|
{
|
||||||
|
SLLStackPush(r_d3d11_state->first_to_free_buffer, buffer);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
ProfEnd();
|
ProfEnd();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user